summaryrefslogtreecommitdiff
path: root/Lib/test/test_buffer.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-06-26 01:17:57 +0800
committerGitHub <noreply@github.com>2020-06-25 19:17:57 +0200
commit847f94f47b104aec678d1d2a2d8fe23d817f375e (patch)
tree3b247098fefe734937e9ed4e5a7388ab4da5c284 /Lib/test/test_buffer.py
parent700cfa8c90a90016638bac13c4efd03786b2b2a0 (diff)
downloadcpython-git-847f94f47b104aec678d1d2a2d8fe23d817f375e.tar.gz
bpo-40275: Use new test.support helper submodules in tests (GH-21151)
Use new test.support helper submodules in tests: * distutils tests * test_buffer * test_compile * test_filecmp * test_fileinput * test_readline * test_smtpnet * test_structmembers * test_tools
Diffstat (limited to 'Lib/test/test_buffer.py')
-rw-r--r--Lib/test/test_buffer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_buffer.py b/Lib/test/test_buffer.py
index d440bcf7e0..468c6ea9de 100644
--- a/Lib/test/test_buffer.py
+++ b/Lib/test/test_buffer.py
@@ -16,6 +16,7 @@
import contextlib
import unittest
from test import support
+from test.support import os_helper
from itertools import permutations, product
from random import randrange, sample, choice
import warnings
@@ -39,7 +40,7 @@ except ImportError:
ctypes = None
try:
- with support.EnvironmentVarGuard() as os.environ, \
+ with os_helper.EnvironmentVarGuard() as os.environ, \
warnings.catch_warnings():
from numpy import ndarray as numpy_array
except ImportError: