summaryrefslogtreecommitdiff
path: root/Lib/test/test_tools/test_pindent.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-08-04 23:53:12 +0800
committerGitHub <noreply@github.com>2020-08-04 17:53:12 +0200
commitc7decc27d529c04a4e6b2922e3f3f9419b920f63 (patch)
tree9bcb971af68ed2e08f4aa4001412d38520194cff /Lib/test/test_tools/test_pindent.py
parent604bba1f8fe32479c89b9824b2231cc4480dd110 (diff)
downloadcpython-git-c7decc27d529c04a4e6b2922e3f3f9419b920f63.tar.gz
bpo-40275: Use new test.support helper submodules in tests (GH-21727)
Diffstat (limited to 'Lib/test/test_tools/test_pindent.py')
-rw-r--r--Lib/test/test_tools/test_pindent.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_tools/test_pindent.py b/Lib/test/test_tools/test_pindent.py
index e293bc872c..e7a547ad7d 100644
--- a/Lib/test/test_tools/test_pindent.py
+++ b/Lib/test/test_tools/test_pindent.py
@@ -6,6 +6,7 @@ import unittest
import subprocess
import textwrap
from test import support
+from test.support import os_helper
from test.support.script_helper import assert_python_ok
from test.test_tools import scriptsdir, skip_if_missing
@@ -34,7 +35,7 @@ class PindentTests(unittest.TestCase):
def test_selftest(self):
self.maxDiff = None
- with support.temp_dir() as directory:
+ with os_helper.temp_dir() as directory:
data_path = os.path.join(directory, '_test.py')
with open(self.script) as f:
closed = f.read()