qutebrowser/tests/unit/utils
Florian Bruhin 240c566384 Fix resource globbing with Python .egg installs
When qutebrowser is installed as an .egg (like can happen with setup.py
install), importlib.resources.files(...) can return a zipfile.Path in
place of a pathlib.Path.

Unfortunately, those path objects don't support .glob(), nor do they
support things like .relative_to() or .as_posix(). Thus, if that's the
case, we need to implement our own poor globbing based on
.iterdir() (which they *do* support).

(cherry picked from commit 54bcdc1eef)
2021-01-28 15:57:38 +01:00
..
usertypes doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
overflow_test_cases.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_debug.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_error.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_javascript.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_jinja.py Separate utils.read_file and read_file_binary 2021-01-26 17:49:39 +01:00
test_log.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_qtutils.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_standarddir.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_urlmatch.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_urlutils.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
test_utils.py Fix resource globbing with Python .egg installs 2021-01-28 15:57:38 +01:00
test_version.py doc: Switch URLs to https 2021-01-26 15:19:01 +01:00