From 4508da5407e1781777469a415d2956cf0c031574 2015-03-20 01:00:48 From: Jessica B. Hamrick Date: 2015-03-20 01:00:48 Subject: [PATCH] Fix timeout test --- diff --git a/IPython/nbconvert/preprocessors/tests/test_execute.py b/IPython/nbconvert/preprocessors/tests/test_execute.py index cb22ef5..f43939c 100644 --- a/IPython/nbconvert/preprocessors/tests/test_execute.py +++ b/IPython/nbconvert/preprocessors/tests/test_execute.py @@ -146,4 +146,6 @@ class TestExecute(PreprocessorTestsBase): """Check that an error is raised when a computation times out""" current_dir = os.path.dirname(__file__) filename = os.path.join(current_dir, 'files', 'Interrupt.ipynb') - assert_raises(Empty, self.run_notebook, filename, dict(timeout=1)) + res = self.build_resources() + res['metadata']['path'] = os.path.dirname(filename) + assert_raises(Empty, self.run_notebook, filename, dict(timeout=1), res)