From 47b2d515224c887438b0984000de29156925f1c1 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Wed, 9 May 2018 15:00:38 -0400 Subject: [PATCH] Remove obsolete code --- test/test_python.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/test_python.py b/test/test_python.py index e6078857e..140a90588 100644 --- a/test/test_python.py +++ b/test/test_python.py @@ -68,12 +68,6 @@ def test_run_core_python_test(python_test, selenium): " exitcode = n\n" " raise SystemExit()\n\n" "sys.exit = exit\n") - # Undo the lazy modules setup -- it interferes with the CPython test - # harness - selenium.run( - "for k in list(sys.modules):\n" - " if k.startswith('numpy'):\n" - " del sys.modules[k]\n") selenium.run( "from test.libregrtest import main\n" "main(['{}'], verbose=True, verbose3=True)".format(python_test))