From: Jon Speicher Date: Sat, 27 Jul 2013 19:29:27 +0000 (-0400) Subject: Fix the nose failure by fixing the bug, not nopping the test X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2eb7ba2bb4f10a12623c883858d7a85bf8ac47ef;p=swc-testing-nose.git Fix the nose failure by fixing the bug, not nopping the test --- diff --git a/python/sw_engineering/SoftwareEngineering.ipynb b/python/sw_engineering/SoftwareEngineering.ipynb index a50a53e..ae0c7e6 100644 --- a/python/sw_engineering/SoftwareEngineering.ipynb +++ b/python/sw_engineering/SoftwareEngineering.ipynb @@ -855,22 +855,22 @@ "metadata": {}, "source": [ "***\n", - "**Aside: Clearing out our failure example**\n", + "**Aside: Fixing our failure example**\n", "\n", - "Let's get that failed test out of the way by *redefining* the function to do nothing. In Python, this uses the `pass` keyword (but note that `pass` doesn't actually mean \"pass the test\")." + "Let's get that failed test out of the way by *redefining* the function to do fix the bug." ] }, { "cell_type": "code", "collapsed": false, "input": [ - "def test_add_two_plus_two_equals_four():\n", - " pass" + "def add_two_plus_two():\n", + " return 2 + 2" ], "language": "python", "metadata": {}, "outputs": [], - "prompt_number": 16 + "prompt_number": 17 }, { "cell_type": "code",