mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
use assert[Not]IsInstance where appropriate
This commit is contained in:
parent
f14c7fc33d
commit
b0f5adc3f4
57 changed files with 269 additions and 272 deletions
|
@ -348,7 +348,7 @@ class TestOptionParser(BaseTest):
|
|||
|
||||
def test_get_option(self):
|
||||
opt1 = self.parser.get_option("-v")
|
||||
self.assertTrue(isinstance(opt1, Option))
|
||||
self.assertIsInstance(opt1, Option)
|
||||
self.assertEqual(opt1._short_opts, ["-v", "-n"])
|
||||
self.assertEqual(opt1._long_opts, ["--verbose", "--noisy"])
|
||||
self.assertEqual(opt1.action, "store_true")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue