From eaaa06ed9798aeb9530fb61bedf1a83036347296 Mon Sep 17 00:00:00 2001
From: u214892 <u214892@sbb.ch>
Date: Fri, 20 Sep 2019 09:43:23 +0200
Subject: [PATCH] #163 random guesses

---
 benchmarks/run_all_examples.py | 66 +++++++++++++++++-----------------
 1 file changed, 33 insertions(+), 33 deletions(-)

diff --git a/benchmarks/run_all_examples.py b/benchmarks/run_all_examples.py
index d2ace3c3..9b85b24c 100644
--- a/benchmarks/run_all_examples.py
+++ b/benchmarks/run_all_examples.py
@@ -1,36 +1,36 @@
 import runpy
-import sys
-from io import StringIO
+# import sys
+# from io import StringIO
+#
+# import importlib_resources
+# import pkg_resources
+# from importlib_resources import path
+#
+# from benchmarks.benchmark_utils import swap_attr
 
-import importlib_resources
-import pkg_resources
-from importlib_resources import path
+print("GRRRRRRRR run_all_examples.py")
 
-from benchmarks.benchmark_utils import swap_attr
-
-print("run_all_examples.py")
-
-for entry in [entry for entry in importlib_resources.contents('examples') if
-              not pkg_resources.resource_isdir('examples', entry)
-              and entry.endswith(".py")
-              and '__init__' not in entry
-              and 'demo.py' not in entry
-              and 'DELETE' not in entry
-              ]:
-    with path('examples', entry) as file_in:
-        print("")
-        print("")
-
-        print("")
-        print("*****************************************************************")
-        print("Running {}".format(entry))
-        print("*****************************************************************")
-        with swap_attr(sys, "stdin", StringIO("q")):
-            try:
-                runpy.run_path(file_in, run_name="__main__", init_globals={
-                    'argv': ['--sleep-for-animation=False']
-                })
-            except Exception as e:
-                print(e)
-            print("runpy done.")
-        print("Done with {}".format(entry))
+# for entry in [entry for entry in importlib_resources.contents('examples') if
+#               not pkg_resources.resource_isdir('examples', entry)
+#               and entry.endswith(".py")
+#               and '__init__' not in entry
+#               and 'demo.py' not in entry
+#               and 'DELETE' not in entry
+#               ]:
+#     with path('examples', entry) as file_in:
+#         print("")
+#         print("")
+#
+#         print("")
+#         print("*****************************************************************")
+#         print("Running {}".format(entry))
+#         print("*****************************************************************")
+#         with swap_attr(sys, "stdin", StringIO("q")):
+#             try:
+#                 runpy.run_path(file_in, run_name="__main__", init_globals={
+#                     'argv': ['--sleep-for-animation=False']
+#                 })
+#             except Exception as e:
+#                 print(e)
+#             print("runpy done.")
+#         print("Done with {}".format(entry))
-- 
GitLab