summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_turtle.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-08-06 11:51:29 (GMT)
committerGitHub <noreply@github.com>2020-08-06 11:51:29 (GMT)
commit79bb2c93f2d81702fdf1f93720369e18a76b7d1a (patch)
tree6ab9d0c6ef07954cc871dd6eb06f3a80329d33e6 /Lib/test/test_turtle.py
parent52f98424a55e14f05dfa7483cc0faf634a61c9ff (diff)
downloadcpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.zip
cpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.tar.gz
cpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.tar.bz2
bpo-40275: Use new test.support helper submodules in tests (GH-21743)
Diffstat (limited to 'Lib/test/test_turtle.py')
-rw-r--r--Lib/test/test_turtle.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_turtle.py b/Lib/test/test_turtle.py
index 39b3d96..46ff4a3 100644
--- a/Lib/test/test_turtle.py
+++ b/Lib/test/test_turtle.py
@@ -2,6 +2,7 @@ import pickle
import unittest
from test import support
from test.support import import_helper
+from test.support import os_helper
turtle = import_helper.import_module('turtle')
@@ -52,10 +53,10 @@ visible = False
class TurtleConfigTest(unittest.TestCase):
def get_cfg_file(self, cfg_str):
- self.addCleanup(support.unlink, support.TESTFN)
- with open(support.TESTFN, 'w') as f:
+ self.addCleanup(os_helper.unlink, os_helper.TESTFN)
+ with open(os_helper.TESTFN, 'w') as f:
f.write(cfg_str)
- return support.TESTFN
+ return os_helper.TESTFN
def test_config_dict(self):