summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_copy_reg.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-01-26 11:32:44 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-01-26 11:32:44 (GMT)
commit692d292c635daaadd68e568020d647208db1cffe (patch)
tree3ffd6b20b7d3b372edb21a3177d2267ccdf683eb /Lib/test/test_copy_reg.py
parent9789aefa616c14599af600bdea925299517da730 (diff)
downloadcpython-692d292c635daaadd68e568020d647208db1cffe.zip
cpython-692d292c635daaadd68e568020d647208db1cffe.tar.gz
cpython-692d292c635daaadd68e568020d647208db1cffe.tar.bz2
Test that True can be copied.
Diffstat (limited to 'Lib/test/test_copy_reg.py')
-rw-r--r--Lib/test/test_copy_reg.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_copy_reg.py b/Lib/test/test_copy_reg.py
index 08c7031..4104dab 100644
--- a/Lib/test/test_copy_reg.py
+++ b/Lib/test/test_copy_reg.py
@@ -21,6 +21,10 @@ class CopyRegTestCase(unittest.TestCase):
self.assertRaises(TypeError, copy_reg.pickle,
type(1), int, "not a callable")
+ def test_bool(self):
+ import copy
+ self.assertEquals(True, copy.copy(True))
+
def test_main():
test_support.run_unittest(CopyRegTestCase)