Testsuite: delete dead code
authorThomas Miedema <thomasmiedema@gmail.com>
Thu, 27 Aug 2015 23:00:31 +0000 (01:00 +0200)
committerThomas Miedema <thomasmiedema@gmail.com>
Wed, 2 Sep 2015 18:29:35 +0000 (20:29 +0200)
testsuite/driver/testlib.py

index 68a9208..5a587a7 100644 (file)
@@ -1407,11 +1407,8 @@ def interpreter_run( name, way, extra_hc_opts, compile_only, top_mod ):
         stdin_file = qualify(name, 'stdin')
 
     if os.path.exists(stdin_file):
-        stdin = open(stdin_file, 'r')
         os.system('cat ' + stdin_file + ' >>' + qscriptname)
 
-    script.close()
-
     flags = ' '.join(get_compiler_flags(override_flags=None, noforce=False) +
                      config.way_flags(name)[way])