Test that True can be copied.

This commit is contained in:
Martin v. Löwis 2003-01-26 11:32:44 +00:00
parent 9789aefa61
commit 692d292c63
1 changed files with 4 additions and 0 deletions

View 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)