8000 gh-120417: Modify test_bdb to use the import (#120628) · python/cpython@e73c42e · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e73c42e

Browse files
authored
gh-120417: Modify test_bdb to use the import (#120628)
Run test_module_for_bdb with a specific namespace.
1 parent c608477 commit e73c42e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_bdb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,8 +1046,9 @@ def main():
10461046
('return', 1, '<module>'), ('quit', ),
10471047
]
10481048
import test_module_for_bdb
1049+
ns = {'test_module_for_bdb': test_module_for_bdb}
10491050
with TracerRun(self) as tracer:
1050-
tracer.runeval('test_module_for_bdb.main()', globals(), locals())
1051+
tracer.runeval('test_module_for_bdb.main()', ns, ns)
10511052

10521053
class IssuesTestCase(BaseTestCase):
10531054
"""Test fixed bdb issues."""

0 commit comments

Comments
 (0)
0