bpo-40275: Use new test.support helper submodules in tests (GH-21169)
diff --git a/Lib/test/test_bool.py b/Lib/test/test_bool.py
index 4c6fba4..7b3a385 100644
--- a/Lib/test/test_bool.py
+++ b/Lib/test/test_bool.py
@@ -2,6 +2,7 @@
import unittest
from test import support
+from test.support import os_helper
import os
@@ -234,11 +235,11 @@
def test_fileclosed(self):
try:
- with open(support.TESTFN, "w") as f:
+ with open(os_helper.TESTFN, "w") as f:
self.assertIs(f.closed, False)
self.assertIs(f.closed, True)
finally:
- os.remove(support.TESTFN)
+ os.remove(os_helper.TESTFN)
def test_types(self):
# types are always true.