fix duplicate test names in test_dis (closes #19117)
This commit is contained in:
parent
f8ab76039b
commit
52010b40f6
|
@ -245,7 +245,6 @@ class DisTests(unittest.TestCase):
|
||||||
expected = _BIG_LINENO_FORMAT % (i + 2)
|
expected = _BIG_LINENO_FORMAT % (i + 2)
|
||||||
self.do_disassembly_test(func(i), expected)
|
self.do_disassembly_test(func(i), expected)
|
||||||
|
|
||||||
def test_big_linenos(self):
|
|
||||||
from test import dis_module
|
from test import dis_module
|
||||||
self.do_disassembly_test(dis_module, dis_module_expected_results)
|
self.do_disassembly_test(dis_module, dis_module_expected_results)
|
||||||
|
|
||||||
|
@ -271,9 +270,6 @@ class DisTests(unittest.TestCase):
|
||||||
pass
|
pass
|
||||||
self.assertRaises(RuntimeError, dis.dis, None)
|
self.assertRaises(RuntimeError, dis.dis, None)
|
||||||
|
|
||||||
def test_dis_object(self):
|
|
||||||
self.assertRaises(TypeError, dis.dis, object())
|
|
||||||
|
|
||||||
def test_dis_traceback(self):
|
def test_dis_traceback(self):
|
||||||
try:
|
try:
|
||||||
del sys.last_traceback
|
del sys.last_traceback
|
||||||
|
|
Loading…
Reference in New Issue