Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
2d3bc4ad
Commit
2d3bc4ad
authored
Jun 25, 2019
by
Markus Scheidgen
Browse files
Fix for
#162
.
parent
f823122b
Pipeline
#51096
canceled with stages
in 9 minutes and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/parsing/parser.py
View file @
2d3bc4ad
...
...
@@ -139,7 +139,7 @@ class MatchingParser(Parser):
if
self
.
_mainfile_contents_re
.
search
(
decoded_buffer
)
is
None
:
return
False
return
self
.
_mainfile_mime_re
.
match
(
mime
)
is
not
None
and
\
self
.
_mainfile_name_re
.
match
(
filename
)
is
not
None
and
\
self
.
_mainfile_name_re
.
full
match
(
filename
)
is
not
None
and
\
(
compression
is
None
or
compression
in
self
.
_supported_compressions
)
def
__repr__
(
self
):
...
...
tests/test_parsing.py
View file @
2d3bc4ad
...
...
@@ -72,7 +72,7 @@ for parser, mainfile in parser_examples:
parser_examples
=
fixed_parser_examples
correct_num_output_files
=
41
correct_num_output_files
=
38
class
TestLocalBackend
(
object
):
...
...
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