Issue #16045: add more unit tests for built-in int()

Patch by Chris Jerdonek.
This commit is contained in:
Andrew Svetlov 2012-12-23 12:44:04 +02:00
parent 8e1e8165a3
commit cddcafaf6b
2 changed files with 56 additions and 0 deletions

View file

@ -680,6 +680,8 @@ class BuiltinTest(unittest.TestCase):
# Test input() later, together with raw_input
# test_int(): see test_int.py for int() tests.
def test_intern(self):
self.assertRaises(TypeError, intern)
# This fails if the test is run twice with a constant string,