]> granicus.if.org Git - python/commitdiff
Test that True can be copied.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 26 Jan 2003 11:32:44 +0000 (11:32 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 26 Jan 2003 11:32:44 +0000 (11:32 +0000)
Lib/test/test_copy_reg.py

index 08c7031920c6feac3c2f1caf171909a7cb1eecd3..4104dab8e5cc6c530eb4d519d139623dc9428dc0 100644 (file)
@@ -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)