Skip to content

Commit

Permalink
fixed up issue with conftest being recognised as a namespace in edit …
Browse files Browse the repository at this point in the history
…mode
  • Loading branch information
tclose committed May 27, 2024
1 parent 1e75998 commit 867cd72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fileformats/core/datatype.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def from_mime(cls, mime_string):
# treats it). Therefore, we loop through all subclasses across the different
# namespaces to find one that matches the name.
format_name = format_name[2:] # remove "x-" prefix
matching_name = FileSet.formats_by_name[format_name]
matching_name = FileSet.formats_by_name.get(format_name, ())
matching_name = [
m
for m in matching_name
Expand Down
4 changes: 3 additions & 1 deletion fileformats/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
logger = logging.getLogger("fileformats")


_excluded_subpackages = set(["core", "testing", "serialization", "archive", "document"])
_excluded_subpackages = set(
["core", "testing", "serialization", "archive", "document", "conftest"]
)


def include_testing_package(flag: bool = True):
Expand Down

0 comments on commit 867cd72

Please sign in to comment.