Skip to content

Commit 7345c14

Browse files
committed
protect skip import
1 parent 2b73659 commit 7345c14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plotly/tests/test_optional/test_ipython/test_embed.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
import threading
66
import six
77
import unittest
8-
from unittest import skip
98
version = six.sys.version_info[:2] # need this for conditional testing
109

1110
# unittest `skipIf` not supported in 2.6 and IPython not supported in 2.6/3.2
1211
if version < (2, 7) or (2, 7) < version < (3, 3):
1312
pass
1413
else:
14+
from unittest import skip
15+
1516
@skip
1617
class TestPlotlyDisplay(unittest.TestCase):
1718

0 commit comments

Comments
 (0)