Преглед изворни кода

Added coverage 'exclude' markers to src/parser.py.

Sander Mathijs van Veen пре 14 година
родитељ
комит
2ad7b22689
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      src/parser.py

+ 4 - 4
src/parser.py

@@ -136,7 +136,7 @@ class Parser(BisonParser):
             return values[0]
 
         raise BisonSyntaxError('Unsupported option %d in target "%s".'
-                               % (option, target))
+                               % (option, target))  # pragma: nocover
 
     def on_unary(self, target, option, names, values):
         """
@@ -147,7 +147,7 @@ class Parser(BisonParser):
             return Node('-', values[1])
 
         raise BisonSyntaxError('Unsupported option %d in target "%s".'
-                               % (option, target))
+                               % (option, target))  # pragma: nocover
 
     def on_binary(self, target, option, names, values):
         """
@@ -177,7 +177,7 @@ class Parser(BisonParser):
             return Node('^', values[0], values[2])
 
         raise BisonSyntaxError('Unsupported option %d in target "%s".'
-                               % (option, target))
+                               % (option, target))  # pragma: nocover
 
     def on_concat(self, option, target, names, values):
         """
@@ -211,7 +211,7 @@ class Parser(BisonParser):
             return Node('^', Leaf(identifier), Leaf(int(exponent)))
 
         raise BisonSyntaxError('Unsupported option %d in target "%s".'
-                               % (option, target))
+                               % (option, target))  # pragma: nocover
 
     # -----------------------------------------
     # raw lex script, verbatim here