bpo-40275: Use new test.support helper submodules in tests (GH-21451)
diff --git a/Lib/test/test_lltrace.py b/Lib/test/test_lltrace.py
index 49fae81..5f7d564 100644
--- a/Lib/test/test_lltrace.py
+++ b/Lib/test/test_lltrace.py
@@ -2,7 +2,7 @@
import textwrap
import unittest
-from test import support
+from test.support import os_helper
from test.support.script_helper import assert_python_ok
@@ -13,8 +13,8 @@
# bpo-34113. The crash happened at the command line console of
# debug Python builds with __ltrace__ enabled (only possible in console),
# when the interal Python stack was negatively adjusted
- with open(support.TESTFN, 'w') as fd:
- self.addCleanup(os.unlink, support.TESTFN)
+ with open(os_helper.TESTFN, 'w') as fd:
+ self.addCleanup(os_helper.unlink, os_helper.TESTFN)
fd.write(textwrap.dedent("""\
import code
@@ -25,7 +25,7 @@
print('unreachable if bug exists')
"""))
- assert_python_ok(support.TESTFN)
+ assert_python_ok(os_helper.TESTFN)
if __name__ == "__main__":
unittest.main()