diff options
author | Michael W. Hudson <mwh@python.net> | 2002-03-05 15:38:43 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2002-03-05 15:38:43 (GMT) |
commit | d7894ba15806f5053b6a9aba1a5a50630ee52215 (patch) | |
tree | 97abf83fcd0e32effbb8796549fd76fc36b8fde9 | |
parent | 72500922d2d79d932d3dd6af4effe68904332e54 (diff) | |
download | cpython-d7894ba15806f5053b6a9aba1a5a50630ee52215.zip cpython-d7894ba15806f5053b6a9aba1a5a50630ee52215.tar.gz cpython-d7894ba15806f5053b6a9aba1a5a50630ee52215.tar.bz2 |
backport tim_one's checkin of
revision 1.116 of test_descr.py
_PyLong_Copy(): was creating a copy of the absolute value, but should
copy the sign too. Added a test to test_descr to ensure that it does.
Bugfix candidate.
-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 e667efb..de9bba1 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -1751,6 +1751,7 @@ def inherits(): # Check that negative clones don't segfault a = longclone(-1) vereq(a.__dict__, {}) + vereq(long(a), -1) # verify PyNumber_Long() copies the sign bit class precfloat(float): __slots__ = ['prec'] |