summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_contextlib.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-07-09 13:25:10 (GMT)
committerGitHub <noreply@github.com>2020-07-09 13:25:10 (GMT)
commit96a6a6d42be272a27562d98549bbffc0d1854669 (patch)
tree9c4fc12729aa2accce4ca953a6431acec87cf542 /Lib/test/test_contextlib.py
parent61bb24a270d15106decb1c7983bf4c2831671a75 (diff)
downloadcpython-96a6a6d42be272a27562d98549bbffc0d1854669.zip
cpython-96a6a6d42be272a27562d98549bbffc0d1854669.tar.gz
cpython-96a6a6d42be272a27562d98549bbffc0d1854669.tar.bz2
bpo-40275: Use new test.support helper submodules in tests (GH-21412)
Diffstat (limited to 'Lib/test/test_contextlib.py')
-rw-r--r--Lib/test/test_contextlib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_contextlib.py b/Lib/test/test_contextlib.py
index 024f912..50943c1 100644
--- a/Lib/test/test_contextlib.py
+++ b/Lib/test/test_contextlib.py
@@ -7,6 +7,7 @@ import threading
import unittest
from contextlib import * # Tests __all__
from test import support
+from test.support import os_helper
import weakref
@@ -327,7 +328,7 @@ class FileContextTestCase(unittest.TestCase):
1 / 0
self.assertTrue(f.closed)
finally:
- support.unlink(tfn)
+ os_helper.unlink(tfn)
class LockContextTestCase(unittest.TestCase):