[Python-checkins] CVS: python/dist/src/Lib/test test_descr.py,1.115,1.116
Tim Peters
tim_one@users.sourceforge.net
Fri, 01 Mar 2002 20:18:06 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv9574/python/Lib/test
Modified Files:
test_descr.py
Log Message:
_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.
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.115
retrieving revision 1.116
diff -C2 -d -r1.115 -r1.116
*** test_descr.py 1 Mar 2002 22:24:24 -0000 1.115
--- test_descr.py 2 Mar 2002 04:18:04 -0000 1.116
***************
*** 1752,1755 ****
--- 1752,1756 ----
a = longclone(-1)
vereq(a.__dict__, {})
+ vereq(long(a), -1) # verify PyNumber_Long() copies the sign bit
class precfloat(float):