[Python-checkins] python/dist/src/Lib/test test_copy.py,1.10,1.11

loewis@users.sourceforge.net loewis@users.sourceforge.net
2003年6月14日 00:10:08 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv26989/Lib/test
Modified Files:
	test_copy.py 
Log Message:
Copy builtin functions as atomic. Fixes #746304. Will backport to 2.2.
Index: test_copy.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_copy.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** test_copy.py	13 Jun 2003 19:26:29 -0000	1.10
--- test_copy.py	14 Jun 2003 07:10:06 -0000	1.11
***************
*** 85,89 ****
 tests = [None, 42, 2L**100, 3.14, True, False, 1j,
 "hello", u"hello\u1234", f.func_code,
! NewStyle, xrange(10), Classic]
 for x in tests:
 self.assert_(copy.copy(x) is x, `x`)
--- 85,89 ----
 tests = [None, 42, 2L**100, 3.14, True, False, 1j,
 "hello", u"hello\u1234", f.func_code,
! NewStyle, xrange(10), Classic, max]
 for x in tests:
 self.assert_(copy.copy(x) is x, `x`)
***************
*** 258,262 ****
 tests = [None, 42, 2L**100, 3.14, True, False, 1j,
 "hello", u"hello\u1234", f.func_code,
! NewStyle, xrange(10), Classic]
 for x in tests:
 self.assert_(copy.deepcopy(x) is x, `x`)
--- 258,262 ----
 tests = [None, 42, 2L**100, 3.14, True, False, 1j,
 "hello", u"hello\u1234", f.func_code,
! NewStyle, xrange(10), Classic, max]
 for x in tests:
 self.assert_(copy.deepcopy(x) is x, `x`)

AltStyle によって変換されたページ (->オリジナル) /