Skip to content

Commit cb3c0c5

Browse files
authored
Merge pull request #1595 from AnswerDotAI/fix/1594
2 parents ffd308b + a5cadd8 commit cb3c0c5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎nbdev/test.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_nb(fn, # file name of notebook to test
3232
verbose=False, # stream stdout/stderr from cells to console?
3333
save=False): # write outputs back to notebook on success?
3434
"Execute tests in notebook in `fn` except those with `skip_flags`"
35-
faulthandler.register(signal.SIGINT, all_threads=True, chain=True)
35+
faulthandler.register(signal.SIGINT, file=sys.__stderr__, all_threads=True, chain=True)
3636
if basepath: sys.path.insert(0, str(basepath))
3737
if not IN_NOTEBOOK: os.environ["IN_TEST"] = '1'
3838
flags=set(L(skip_flags)) - set(L(force_flags))

‎nbs/api/12_test.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
" verbose=False, # stream stdout/stderr from cells to console?\n",
6363
" save=False): # write outputs back to notebook on success?\n",
6464
" \"Execute tests in notebook in `fn` except those with `skip_flags`\"\n",
65-
" faulthandler.register(signal.SIGINT, all_threads=True, chain=True)\n",
65+
" faulthandler.register(signal.SIGINT, file=sys.__stderr__, all_threads=True, chain=True)\n",
6666
" if basepath: sys.path.insert(0, str(basepath))\n",
6767
" if not IN_NOTEBOOK: os.environ[\"IN_TEST\"] = '1'\n",
6868
" flags=set(L(skip_flags)) - set(L(force_flags))\n",

0 commit comments

Comments
 (0)