diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-11 21:53:35 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-11 21:53:35 (GMT) |
commit | 0280cf79a71cf2bf710d57e921d61184aa1b2dfd (patch) | |
tree | c5dd1d437398d512b4be1cb0cc8724733656286c /Lib/test/test_descr.py | |
parent | 73a1dfe3674429f923e98b84ef01df1614baad2f (diff) | |
download | cpython-0280cf79a71cf2bf710d57e921d61184aa1b2dfd.zip cpython-0280cf79a71cf2bf710d57e921d61184aa1b2dfd.tar.gz cpython-0280cf79a71cf2bf710d57e921d61184aa1b2dfd.tar.bz2 |
More bug 460020: when F is a subclass of float, disable the unary plus
optimization (+F(whatever)).
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r-- | Lib/test/test_descr.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ def inherits(): a = precfloat(12345) verify(float(a) == 12345.0) verify(float(a).__class__ is float) + verify((+a).__class__ is float) class madtuple(tuple): _rev = None |