gh-120417: Modify test_bdb to use the import (#120628)

Run test_module_for_bdb with a specific namespace.
This commit is contained in:
Victor Stinner 2024-06-17 21:06:18 +02:00 committed by GitHub
parent c608477532
commit e73c42e15c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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."""