summaryrefslogtreecommitdiff
path: root/Lib/test/test_bool.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-06-30 21:46:31 +0800
committerGitHub <noreply@github.com>2020-06-30 15:46:31 +0200
commit0c4f0f3b29d84063700217dcf90ad6860ed71c70 (patch)
tree22c7c745a13327858287f8ea010794ba51af7be9 /Lib/test/test_bool.py
parent3ddc634cd5469550c0c2dc5a6051a70739995699 (diff)
downloadcpython-git-0c4f0f3b29d84063700217dcf90ad6860ed71c70.tar.gz
bpo-40275: Use new test.support helper submodules in tests (GH-21169)
Diffstat (limited to 'Lib/test/test_bool.py')
-rw-r--r--Lib/test/test_bool.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_bool.py b/Lib/test/test_bool.py
index 4c6fba42c0..7b3a3859e0 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 @@ class BoolTest(unittest.TestCase):
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.