mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
No warning in python2
This commit is contained in:
parent
3d22cf29ce
commit
7fb97ed00e
@ -62,6 +62,8 @@ class AuthTestSpotipy(unittest.TestCase):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(self):
|
def setUpClass(self):
|
||||||
|
if sys.version_info >= (3, 2):
|
||||||
|
# >= Python3.2 only
|
||||||
warnings.filterwarnings(
|
warnings.filterwarnings(
|
||||||
"ignore",
|
"ignore",
|
||||||
category=ResourceWarning,
|
category=ResourceWarning,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user