Copy builtin functions as atomic. Fixes #746304. Will backport to 2.2.
diff --git a/Lib/test/test_copy.py b/Lib/test/test_copy.py
index a53f988..3d44304 100644
--- a/Lib/test/test_copy.py
+++ b/Lib/test/test_copy.py
@@ -84,7 +84,7 @@
pass
tests = [None, 42, 2L**100, 3.14, True, False, 1j,
"hello", u"hello\u1234", f.func_code,
- NewStyle, xrange(10), Classic]
+ NewStyle, xrange(10), Classic, max]
for x in tests:
self.assert_(copy.copy(x) is x, `x`)
@@ -257,7 +257,7 @@
pass
tests = [None, 42, 2L**100, 3.14, True, False, 1j,
"hello", u"hello\u1234", f.func_code,
- NewStyle, xrange(10), Classic]
+ NewStyle, xrange(10), Classic, max]
for x in tests:
self.assert_(copy.deepcopy(x) is x, `x`)