Skip to content

Commit

Permalink
fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
hamelsmu committed Oct 12, 2020
1 parent 4d195a2 commit 6f257e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fastcore/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def test_fig_exists(ax):
assert ax and len(ax.figure.canvas.tostring_argb())

# Cell
class TestFail():
"A context manager to allow you to test if an exception (e) is raised. Optionally, search the exception's error message with regex."
class TestFail:
"A context manager to allow you to test if an exception (ex) is raised. Optionally, search the exception's error message with a regex."
def __init__(self, ex:Exception, regex:str=None):store_attr()
def __enter__(self): pass
def __exit__(self, type, value, traceback):
Expand Down
4 changes: 2 additions & 2 deletions nbs/00_test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@
"outputs": [],
"source": [
"#export\n",
"class TestFail():\n",
" \"A context manager to allow you to test if an exception (e) is raised. Optionally, search the exception's error message with regex.\"\n",
"class TestFail:\n",
" \"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",
" def __init__(self, ex:Exception, regex:str=None):store_attr()\n",
" def __enter__(self): pass\n",
" def __exit__(self, type, value, traceback): \n",
Expand Down

0 comments on commit 6f257e7

Please sign in to comment.