Skip to content

Commit 6f257e7

Browse files
committed
fix nits
1 parent 4d195a2 commit 6f257e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fastcore/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def test_fig_exists(ax):
9999
assert ax and len(ax.figure.canvas.tostring_argb())
100100

101101
# Cell
102-
class TestFail():
103-
"A context manager to allow you to test if an exception (e) is raised. Optionally, search the exception's error message with regex."
102+
class TestFail:
103+
"A context manager to allow you to test if an exception (ex) is raised. Optionally, search the exception's error message with a regex."
104104
def __init__(self, ex:Exception, regex:str=None):store_attr()
105105
def __enter__(self): pass
106106
def __exit__(self, type, value, traceback):

nbs/00_test.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,8 @@
624624
"outputs": [],
625625
"source": [
626626
"#export\n",
627-
"class TestFail():\n",
628-
" \"A context manager to allow you to test if an exception (e) is raised. Optionally, search the exception's error message with regex.\"\n",
627+
"class TestFail:\n",
628+
" \"A context manager to allow you to test if an exception (ex) is raised. Optionally, search the exception's error message with a regex.\"\n",
629629
" def __init__(self, ex:Exception, regex:str=None):store_attr()\n",
630630
" def __enter__(self): pass\n",
631631
" def __exit__(self, type, value, traceback): \n",

0 commit comments

Comments
 (0)