mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-11 09:10:45 +00:00
No warning in python2
This commit is contained in:
1 parent
3d22cf29ce
commit
7fb97ed00e
1 file changed
+6
-4
+6
-4
@@ -62,10 +62,12 @@ class AuthTestSpotipy(unittest.TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(self):
|
||||
warnings.filterwarnings(
|
||||
"ignore",
|
||||
category=ResourceWarning,
|
||||
message="unclosed.*<ssl.SSLSocket.*>")
|
||||
if sys.version_info >= (3, 2):
|
||||
# >= Python3.2 only
|
||||
warnings.filterwarnings(
|
||||
"ignore",
|
||||
category=ResourceWarning,
|
||||
message="unclosed.*<ssl.SSLSocket.*>")
|
||||
|
||||
missing = list(filter(lambda var: not os.getenv(CCEV[var]), CCEV))
|
||||
|
||||
|
||||
Reference in new issue
Block a user