summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_copy.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-02-27 21:14:31 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-02-27 21:14:31 (GMT)
commitb807577da257ba2475abe955120fb7bdf739875c (patch)
treeaf84ab4998c5cee765c282f3b0ee04e0ad88b61b /Lib/test/test_copy.py
parent3673670b675d8a686686a449a0a9a551f53dfee7 (diff)
downloadcpython-b807577da257ba2475abe955120fb7bdf739875c.zip
cpython-b807577da257ba2475abe955120fb7bdf739875c.tar.gz
cpython-b807577da257ba2475abe955120fb7bdf739875c.tar.bz2
Issue #20791: copy.copy() now doesn't make a copy when the input is a bytes object. Initial patch by Peter Otten.
Diffstat (limited to 'Lib/test/test_copy.py')
-rw-r--r--Lib/test/test_copy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_copy.py b/Lib/test/test_copy.py
index cde0bae..eb8d18c 100644
--- a/Lib/test/test_copy.py
+++ b/Lib/test/test_copy.py
@@ -98,6 +98,7 @@ class TestCopy(unittest.TestCase):
pass
tests = [None, 42, 2**100, 3.14, True, False, 1j,
"hello", "hello\u1234", f.__code__,
+ b"world", bytes(range(256)),
NewStyle, range(10), Classic, max, WithMetaclass]
for x in tests:
self.assertIs(copy.copy(x), x)