Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modify tests. Re-arrange repo dir structure

  • Loading branch information...
commit 622cb0c32cf791f78546777b0338a83e8468f00b 1 parent a8ba754
Charles McCreary authored
View
0  __init__.py → src/__init__.py
File renamed without changes
View
0  abaqus_lexer.py → src/abaqus_lexer.py
File renamed without changes
View
4 abaqus_parser.py → src/abaqus_parser.py
@@ -217,6 +217,7 @@ def p_data_line(self, p):
def p_data_list(self, p):
'''
data_list : data_list COMMA data
+ | data_list COMMA LASTTOKENONLINE
| data_list data
'''
if len(p) == 3:
@@ -244,7 +245,8 @@ def p_error(self, p):
'before: %s' % p.value,
self._coord(p.lineno))
else:
- self._parse_error('At end of input', '')
+ pass
+ #self._parse_error('At end of input', '')
if __name__ == "__main__":
View
0  plyparser.py → src/plyparser.py
File renamed without changes
View
4 tests/test_inputs.py
@@ -2,7 +2,7 @@
import sys, os
import re
-sys.path.insert(0,os.path.abspath(os.path.join('..')))
+sys.path.insert(0,os.path.abspath(os.path.join('..','src')))
import abaqus_parser, abaqus_lexer
@@ -19,7 +19,7 @@ def test_2(self):
buf = f.read()
f.close()
parser = abaqus_parser.AbaqusParser(lex_optimize=True, yacc_debug=True, yacc_optimize=False)
- t = parser.parse(buf, 'test_2.inp', debuglevel=2)
+ t = parser.parse(buf, 'test_2.inp', debuglevel=0)
def suite():
suite1 = unittest.makeSuite(Inputs)
Please sign in to comment.
Something went wrong with that request. Please try again.