From 031f3233a9e100c78abfef7473e5065dbd8eb5ec Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Tue, 23 Feb 2016 07:10:18 -0500 Subject: [PATCH] Update sort stack challenge unit test --- stacks_queues/sort_stack/sort_stack_challenge.ipynb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stacks_queues/sort_stack/sort_stack_challenge.ipynb b/stacks_queues/sort_stack/sort_stack_challenge.ipynb index 3dd087b..3197dd8 100644 --- a/stacks_queues/sort_stack/sort_stack_challenge.ipynb +++ b/stacks_queues/sort_stack/sort_stack_challenge.ipynb @@ -153,7 +153,12 @@ "def main():\n", " test = TestSortStack()\n", " test.test_sort_stack(MyStack())\n", - " test.test_sort_stack(MyStackSimplified())\n", + " try:\n", + " test.test_sort_stack(MyStackSimplified())\n", + " except NameError:\n", + " # Alternate solutions are only defined\n", + " # in the solutions file\n", + " pass\n", "\n", "\n", "if __name__ == '__main__':\n",