Test that True can be copied.
This commit is contained in:
parent
9789aefa61
commit
692d292c63
|
@ -21,6 +21,10 @@ class CopyRegTestCase(unittest.TestCase):
|
||||||
self.assertRaises(TypeError, copy_reg.pickle,
|
self.assertRaises(TypeError, copy_reg.pickle,
|
||||||
type(1), int, "not a callable")
|
type(1), int, "not a callable")
|
||||||
|
|
||||||
|
def test_bool(self):
|
||||||
|
import copy
|
||||||
|
self.assertEquals(True, copy.copy(True))
|
||||||
|
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
test_support.run_unittest(CopyRegTestCase)
|
test_support.run_unittest(CopyRegTestCase)
|
||||||
|
|
Loading…
Reference in New Issue