]> Devi Nivas Git - chevron.git/commitdiff
Cause Python version 3.2.2 not to die.
authorDaniel Morrison <dan@morrison.ph>
Tue, 18 Nov 2014 04:22:41 +0000 (23:22 -0500)
committerDaniel Morrison <dan@morrison.ph>
Tue, 18 Nov 2014 04:22:41 +0000 (23:22 -0500)
Python 3.2.2 thinks that '~' is not '~'.
Simple solution !=

test_spec.py

index 0584185c615f5fb15d179e674696bcff0fd21024..78f10d0c102e456931a9f76c2760ca592c22a80b 100755 (executable)
@@ -44,7 +44,7 @@ def _test_case_from_path(json_path):
 # Create TestCase for each json file
 for spec in SPECS:
     # Ignore optional tests
-    if spec[0] is not '~':
+    if spec[0] != '~':
         spec = spec.split('.')[0]
         globals()[spec] = _test_case_from_path(os.path.join(SPECS_PATH, spec))