summaryrefslogtreecommitdiff
path: root/Lib/test/test_compile.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-01-24 16:58:36 +0000
committerEzio Melotti <ezio.melotti@gmail.com>2010-01-24 16:58:36 +0000
commitb0f5adc3f4e098b1744eeac65fc830fb1df2b8ab (patch)
treee2936db9f8e1194464aeb7e9546d5a892f7239c7 /Lib/test/test_compile.py
parentf14c7fc33da8ba3aa28bbb7b0305ea12ab30be09 (diff)
downloadcpython-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.py6
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