summaryrefslogtreecommitdiff
path: root/test/lex_state_norule.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lex_state_norule.py')
-rw-r--r--test/lex_state_norule.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/lex_state_norule.py b/test/lex_state_norule.py
index 2d15248..3037c83 100644
--- a/test/lex_state_norule.py
+++ b/test/lex_state_norule.py
@@ -3,7 +3,7 @@
# Declaration of a state for which no rules are defined
import sys
-sys.path.insert(0,"..")
+if ".." not in sys.path: sys.path.insert(0,"..")
import ply.lex as lex
@@ -13,7 +13,6 @@ tokens = [
"NUMBER",
]
-comment = 1
states = (('comment', 'exclusive'),
('example', 'exclusive'))
@@ -35,7 +34,6 @@ def t_comment_body_part(t):
def t_error(t):
pass
-import sys
lex.lex()