Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3239fcb

Browse files
committed
fixup (pyenv environ var)
1 parent 61f75d8 commit 3239fcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plotly/tests/test_core/test_jupyter/test_jupyter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
PATH_FIXTURES = path.join(PATH_ROOT, 'fixtures')
1515
PATH_TEST_NB = path.join(PATH_FIXTURES, 'test.ipynb')
1616
PATH_TEST_HTML = path.join(PATH_FIXTURES, 'test.html')
17-
PYENV_VERSION = environ['PYENV_VERSION']
1817

1918

2019
class PlotlyJupyterTestCase(TestCase):
2120
def setUp(self):
2221
with open(PATH_TEST_NB, 'r') as f:
2322
self.nb = nbformat.read(f, as_version=4)
2423

25-
if PYENV_VERSION:
26-
self.ep = ExecutePreprocessor(timeout=600, kernel_name=PYENV_VERSION)
24+
if 'PYENV_VERSION' in environ:
25+
kernel_name = environ['PYENV_VERSION']
26+
self.ep = ExecutePreprocessor(timeout=600, kernel_name=kernel_name)
2727
else:
2828
self.ep = ExecutePreprocessor(timeout=600)
2929

0 commit comments

Comments
 (0)