summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/check.py b/check.py
index 40ff6cfd9..0792bd03d 100755
--- a/check.py
+++ b/check.py
@@ -35,6 +35,13 @@ for arg in sys.argv[1:]:
else:
requested.append(arg)
+warnings = []
+
+def warn(text):
+ global warnings
+ warnings.append(text)
+ print 'warning:', text
+
# setup
BASE_DIR = os.path.abspath('test')
@@ -129,13 +136,6 @@ if len(requested) == 0:
else:
tests = requested[:]
-warnings = []
-
-def warn(text):
- global warnings
- warnings.append(text)
- print 'warning:', text
-
if not interpreter:
warn('no interpreter provided (did not test spec interpreter validation)')
if not has_node: