Skip to content

Commit 35fad3b

Browse files
author
ncoop57
committed
Update version and help flag test in notebook
1 parent 08b35f8 commit 35fad3b

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

nbs/08_script.ipynb

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@
436436
"cell_type": "markdown",
437437
"metadata": {},
438438
"source": [
439-
"We can also check the version and help flaggs are working (you can ignore the error message below, this is expected behavior)"
439+
"We can also check the version and help flaggs are working."
440440
]
441441
},
442442
{
@@ -450,19 +450,11 @@
450450
"text": [
451451
"progname 2.0.0\n"
452452
]
453-
},
454-
{
455-
"ename": "SystemExit",
456-
"evalue": "0",
457-
"output_type": "error",
458-
"traceback": [
459-
"An exception has occurred, use %tb to see the full traceback.\n",
460-
"\u001b[0;31mSystemExit\u001b[0m\u001b[0;31m:\u001b[0m 0\n"
461-
]
462453
}
463454
],
464455
"source": [
465-
"p.parse_args(['--v'])"
456+
"try: p.parse_args(['--v'])\n",
457+
"except: pass"
466458
]
467459
},
468460
{
@@ -488,19 +480,11 @@
488480
" --b B param 2 (default: test)\n",
489481
" --c {aa,bb,cc} param 3 (default: aa)\n"
490482
]
491-
},
492-
{
493-
"ename": "SystemExit",
494-
"evalue": "0",
495-
"output_type": "error",
496-
"traceback": [
497-
"An exception has occurred, use %tb to see the full traceback.\n",
498-
"\u001b[0;31mSystemExit\u001b[0m\u001b[0;31m:\u001b[0m 0\n"
499-
]
500483
}
501484
],
502485
"source": [
503-
"p.parse_args(['-h'])"
486+
"try: p.parse_args(['-h'])\n",
487+
"except: pass"
504488
]
505489
},
506490
{

0 commit comments

Comments
 (0)