From 2eb7ba2bb4f10a12623c883858d7a85bf8ac47ef Mon Sep 17 00:00:00 2001 From: Jon Speicher Date: Sat, 27 Jul 2013 15:29:27 -0400 Subject: [PATCH] Fix the nose failure by fixing the bug, not nopping the test --- python/sw_engineering/SoftwareEngineering.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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", -- 2.26.2