summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_decimal.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-01-24 16:58:36 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-01-24 16:58:36 (GMT)
commitb0f5adc3f4e098b1744eeac65fc830fb1df2b8ab (patch)
treee2936db9f8e1194464aeb7e9546d5a892f7239c7 /Lib/test/test_decimal.py
parentf14c7fc33da8ba3aa28bbb7b0305ea12ab30be09 (diff)
downloadcpython-b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab.zip
cpython-b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab.tar.gz
cpython-b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab.tar.bz2
use assert[Not]IsInstance where appropriate
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r--Lib/test/test_decimal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index fac0728..f57f38d 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -521,7 +521,7 @@ class DecimalExplicitConstructionTest(unittest.TestCase):
# from int
d = nc.create_decimal(456)
- self.assertTrue(isinstance(d, Decimal))
+ self.assertIsInstance(d, Decimal)
self.assertEqual(nc.create_decimal(45678),
nc.create_decimal('457E+2'))
@@ -1529,7 +1529,7 @@ class DecimalPythonAPItests(unittest.TestCase):
def test_abc(self):
self.assertTrue(issubclass(Decimal, numbers.Number))
self.assertTrue(not issubclass(Decimal, numbers.Real))
- self.assertTrue(isinstance(Decimal(0), numbers.Number))
+ self.assertIsInstance(Decimal(0), numbers.Number)
self.assertTrue(not isinstance(Decimal(0), numbers.Real))
def test_pickle(self):