Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
badw-it
DHParser
Commits
3a333dd1
Commit
3a333dd1
authored
Nov 02, 2017
by
di68kap
Browse files
- test_toolkit.py: 'tmp' directory is not assumed to exist already
parent
e5c3a696
Changes
2
Show whitespace changes
Inline
Side-by-side
test/test_dsl.py
View file @
3a333dd1
...
...
@@ -61,7 +61,7 @@ class TestCompilerGeneration:
word = /\w+/
WSPC = /\s+/
"""
tmp
=
'test/tmp/'
if
os
.
path
.
isdir
(
'test/
tmp/
'
)
else
(
'tmp/'
)
tmp
=
'test/tmp/'
if
os
.
path
.
isdir
(
'test/'
)
else
(
'tmp/'
)
trivial_text
=
u
"""Es war ein Koenig in Thule.
\n
"""
grammar_name
=
tmp
+
"TestCompilerGeneration.ebnf"
compiler_name
=
tmp
+
"TestCompilerGenerationCompiler.py"
...
...
test/test_toolkit.py
View file @
3a333dd1
...
...
@@ -30,7 +30,7 @@ from DHParser.toolkit import load_if_file, logging, log_dir, is_logging, re
class
TestLoggingAndLoading
:
filename
=
"test/tmp/test.py"
if
os
.
path
.
isdir
(
'test
/tmp
'
)
else
"tmp/test.py"
filename
=
"test/tmp/test.py"
if
os
.
path
.
isdir
(
'test'
)
else
"tmp/test.py"
dirname
=
os
.
path
.
dirname
(
filename
)
code1
=
"x = 46"
code2
=
"def f():
\n
return 46"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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