diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2014-02-27 21:14:31 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-02-27 21:14:31 (GMT) |
commit | dc9215f8828b23ed6c294f8e64342a55dcdf1e4c (patch) | |
tree | d4cc4203e175728a19a15e7f785a264297a6a883 /Lib/test | |
parent | 85736a7d2c4fcb0369becf59b143e5035a2adc23 (diff) | |
download | cpython-dc9215f8828b23ed6c294f8e64342a55dcdf1e4c.zip cpython-dc9215f8828b23ed6c294f8e64342a55dcdf1e4c.tar.gz cpython-dc9215f8828b23ed6c294f8e64342a55dcdf1e4c.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')
-rw-r--r-- | Lib/test/test_copy.py | 1 |
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) |