From 47bed4a30dabded92fc595a65d6e265c7e1af8e9 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Sun, 28 Jul 2013 15:12:51 -0500 Subject: [PATCH] Add type checking for sith.py run --- sith.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sith.py b/sith.py index eabf5179..31c97e33 100755 --- a/sith.py +++ b/sith.py @@ -75,6 +75,8 @@ class SourceFinder(object): class TestCase(object): def __init__(self, operation, path, line, column, traceback=None): + if operation not in self.operations: + raise ValueError("%s is not a valid operation" % operation) self.operation = operation self.path = path self.line = line