Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
1f4917c2
Commit
1f4917c2
authored
Mar 31, 2019
by
Eckhart Arnold
Browse files
test_dhparser.py: python3 in call instead of python (compatibility with older systems)
parent
a7a402d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_dhparser.py
View file @
1f4917c2
...
...
@@ -45,9 +45,9 @@ class TestDHParserCommandLineTool:
def
test_dhparser
(
self
):
nulldevice
=
" >/dev/null"
if
platform
.
system
()
!=
"Windows"
else
" > NUL"
os
.
system
(
'python ../scripts/dhparser.py testdata/neu '
+
nulldevice
)
os
.
system
(
'python testdata/neu/tst_neu_grammar.py '
+
nulldevice
)
os
.
system
(
'python testdata/neu/neuCompiler.py testdata/neu/example.dsl '
os
.
system
(
'python
3
../scripts/dhparser.py testdata/neu '
+
nulldevice
)
os
.
system
(
'python
3
testdata/neu/tst_neu_grammar.py '
+
nulldevice
)
os
.
system
(
'python
3
testdata/neu/neuCompiler.py testdata/neu/example.dsl '
'>testdata/neu/example.xml'
)
with
open
(
'testdata/neu/example.xml'
,
'r'
,
encoding
=
'utf-8'
)
as
f
:
xml
=
f
.
read
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment