mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-21764)
This commit is contained in:
parent
46e19b61d3
commit
598a951844
15 changed files with 97 additions and 84 deletions
|
@ -6,7 +6,7 @@ import os
|
|||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
from test import support
|
||||
from test.support import os_helper
|
||||
|
||||
if sys.platform != 'win32':
|
||||
raise unittest.SkipTest("test only relevant on win32")
|
||||
|
@ -109,7 +109,7 @@ class WindowsConsoleIOTests(unittest.TestCase):
|
|||
|
||||
def test_conout_path(self):
|
||||
temp_path = tempfile.mkdtemp()
|
||||
self.addCleanup(support.rmtree, temp_path)
|
||||
self.addCleanup(os_helper.rmtree, temp_path)
|
||||
|
||||
conout_path = os.path.join(temp_path, 'CONOUT$')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue