diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-01-24 16:58:36 +0000 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-01-24 16:58:36 +0000 |
commit | b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab (patch) | |
tree | e2936db9f8e1194464aeb7e9546d5a892f7239c7 /Lib/test/test_compile.py | |
parent | f14c7fc33da8ba3aa28bbb7b0305ea12ab30be09 (diff) | |
download | cpython-git-b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab.tar.gz |
use assert[Not]IsInstance where appropriate
Diffstat (limited to 'Lib/test/test_compile.py')
-rw-r--r-- | Lib/test/test_compile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py index 90047e5cd0..5be65088e6 100644 --- a/Lib/test/test_compile.py +++ b/Lib/test/test_compile.py @@ -249,8 +249,8 @@ if 1: self.fail("How many bits *does* this machine have???") # Verify treatment of contant folding on -(sys.maxint+1) # i.e. -2147483648 on 32 bit platforms. Should return int, not long. - self.assertTrue(isinstance(eval("%s" % (-sys.maxint - 1)), int)) - self.assertTrue(isinstance(eval("%s" % (-sys.maxint - 2)), long)) + self.assertIsInstance(eval("%s" % (-sys.maxint - 1)), int) + self.assertIsInstance(eval("%s" % (-sys.maxint - 2)), long) if sys.maxint == 9223372036854775807: def test_32_63_bit_values(self): @@ -265,7 +265,7 @@ if 1: for variable in self.test_32_63_bit_values.func_code.co_consts: if variable is not None: - self.assertTrue(isinstance(variable, int)) + self.assertIsInstance(variable, int) def test_sequence_unpacking_error(self): # Verify sequence packing/unpacking with "or". SF bug #757818 |