[Python-checkins] python/dist/src/Lib/test test_copy.py,1.5,1.6

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Fri, 07 Feb 2003 09:53:26 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv27206/test

Modified Files:
	test_copy.py 
Log Message:
Somehow, copy() of a classic class object was handled
atomically, but deepcopy() didn't support this at all.
I don't see any reason for this, so I'm adding ClassType
to the set of types that are deep-copied atomically.


Index: test_copy.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_copy.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_copy.py	7 Feb 2003 17:30:18 -0000	1.5
--- test_copy.py	7 Feb 2003 17:53:23 -0000	1.6
***************
*** 240,244 ****
          tests = [None, 42, 2L**100, 3.14, True, False, 1j,
                   "hello", u"hello\u1234", f.func_code,
!                  NewStyle, xrange(10)]
          for x in tests:
              self.assert_(copy.deepcopy(x) is x, `x`)
--- 240,244 ----
          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`)