Skip to content

Commit

Permalink
tests: Fix an issue running tests with some Python 3.4 setups
Browse files Browse the repository at this point in the history
  • Loading branch information
rdb committed Oct 15, 2023
1 parent 4797744 commit cb7f25f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/showbase/test_Loader.py
Expand Up @@ -136,6 +136,10 @@ def load_file(path, options, record=None):
loader = Loader(None)
assert Loader._loadedPythonFileTypes

if sys.version_info < (3, 8):
# pkg_resources relies on things in site-packages (_markerlib)
sys.path += [sysconfig.get_python_lib(True, False), sysconfig.get_python_lib(False, False)]

# Should be registered, not yet loaded
file_type = registry.get_type_from_extension('fnrgl')
assert file_type is not None
Expand Down

0 comments on commit cb7f25f

Please sign in to comment.