Remove obsolete code

This commit is contained in:
Michael Droettboom 2018-05-09 15:00:38 -04:00
parent 3a625fad3d
commit 47b2d51522
1 changed files with 0 additions and 6 deletions

View File

@ -68,12 +68,6 @@ def test_run_core_python_test(python_test, selenium):
" exitcode = n\n" " exitcode = n\n"
" raise SystemExit()\n\n" " raise SystemExit()\n\n"
"sys.exit = exit\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( selenium.run(
"from test.libregrtest import main\n" "from test.libregrtest import main\n"
"main(['{}'], verbose=True, verbose3=True)".format(python_test)) "main(['{}'], verbose=True, verbose3=True)".format(python_test))