Skip to content

Commit 218346b

Browse files
committed
Test won't work, screw it
1 parent a66563c commit 218346b

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

tests/test_folium.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
import json
1212
import os
13-
import warnings
14-
import sys
1513

1614
import branca.element
1715

@@ -32,10 +30,6 @@
3230
except ImportError:
3331
import mock
3432

35-
import importlib
36-
if not hasattr(importlib, 'reload'):
37-
import imp as importlib
38-
3933

4034
rootpath = os.path.abspath(os.path.dirname(__file__))
4135

@@ -351,18 +345,3 @@ def test_json_request(self):
351345
self.m._parent.render()
352346
bounds = self.m.get_bounds()
353347
assert bounds == [[18.948267, -178.123152], [71.351633, 173.304726]], bounds # noqa
354-
355-
356-
def test_deprecation_warning():
357-
"""Test whether the deprecation warning in the folium __init__ is working.
358-
359-
This test may catch warnings on importing other libraries.
360-
"""
361-
with pytest.warns(None) as caught_warnings:
362-
importlib.reload(folium)
363-
expected_warning_count = 1 if sys.version_info < (3, 0) else 0
364-
assert(len(caught_warnings) == expected_warning_count)
365-
if expected_warning_count == 1:
366-
w = caught_warnings[0]
367-
assert issubclass(w.category, PendingDeprecationWarning)
368-
assert str(w.message).startswith('folium will stop working with')

0 commit comments

Comments
 (0)