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.
diff --git a/Lib/test/test_copy.py b/Lib/test/test_copy.py
index 35ce46a..6a31f75 100644
--- a/Lib/test/test_copy.py
+++ b/Lib/test/test_copy.py
@@ -239,7 +239,7 @@
pass
tests = [None, 42, 2L**100, 3.14, True, False, 1j,
"hello", u"hello\u1234", f.func_code,
- NewStyle, xrange(10)]
+ NewStyle, xrange(10), Classic]
for x in tests:
self.assert_(copy.deepcopy(x) is x, `x`)