Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1295e11 commit 676db4bCopy full SHA for 676db4b
1 file changed
Lib/test/test_buffer.py
@@ -17,7 +17,7 @@
17
from itertools import permutations, product
18
from random import randrange, sample, choice
19
import warnings
20
-import sys, array, io
+import sys, array, io, os
21
from decimal import Decimal
22
from fractions import Fraction
23
@@ -37,7 +37,8 @@
37
ctypes = None
38
39
try:
40
- with warnings.catch_warnings():
+ with support.EnvironmentVarGuard() as os.environ, \
41
+ warnings.catch_warnings():
42
from numpy import ndarray as numpy_array
43
except ImportError:
44
numpy_array = None
0 commit comments