mirror of https://github.com/python/cpython
gh-120417: Modify test_bdb to use the import (#120628)
Run test_module_for_bdb with a specific namespace.
This commit is contained in:
parent
c608477532
commit
e73c42e15c
|
@ -1046,8 +1046,9 @@ class RunTestCase(BaseTestCase):
|
|||
('return', 1, '<module>'), ('quit', ),
|
||||
]
|
||||
import test_module_for_bdb
|
||||
ns = {'test_module_for_bdb': test_module_for_bdb}
|
||||
with TracerRun(self) as tracer:
|
||||
tracer.runeval('test_module_for_bdb.main()', globals(), locals())
|
||||
tracer.runeval('test_module_for_bdb.main()', ns, ns)
|
||||
|
||||
class IssuesTestCase(BaseTestCase):
|
||||
"""Test fixed bdb issues."""
|
||||
|
|
Loading…
Reference in New Issue