commit | 0280cf79a71cf2bf710d57e921d61184aa1b2dfd | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Tue Sep 11 21:53:35 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Tue Sep 11 21:53:35 2001 +0000 |
tree | c5dd1d437398d512b4be1cb0cc8724733656286c | |
parent | 73a1dfe3674429f923e98b84ef01df1614baad2f [diff] [blame] |
More bug 460020: when F is a subclass of float, disable the unary plus optimization (+F(whatever)).
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index e89f642..a50785f 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py
@@ -1401,6 +1401,7 @@ a = precfloat(12345) verify(float(a) == 12345.0) verify(float(a).__class__ is float) + verify((+a).__class__ is float) class madtuple(tuple): _rev = None