From 7c6fa4ddd3d55e066d5aa063495aaec6cb7e2d82 Mon Sep 17 00:00:00 2001 From: Christopher Baklid Date: Mon, 21 May 2018 18:58:51 +0200 Subject: Delete test.py --- runner/test.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 runner/test.py (limited to 'runner/test.py') diff --git a/runner/test.py b/runner/test.py deleted file mode 100644 index 08f0441..0000000 --- a/runner/test.py +++ /dev/null @@ -1,21 +0,0 @@ -import sys -from io import StringIO - -def execute(snippet): - old_stdout = sys.stdout - redirected_output = sys.stdout = StringIO() - try: - exec(snippet) - except: - raise - finally: - sys.stdout = old_stdout - - return redirected_output.getvalue() - - -code = """ -i = [0,1,2] -for j in i: - print(j) -""" -- cgit v1.2.3