mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-21727)
This commit is contained in:
parent
604bba1f8f
commit
c7decc27d5
19 changed files with 58 additions and 46 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue