# imagecodecs/tests/conftest.py


def pytest_report_header(config):
    import sys

    try:
        pyversion = f'Python {sys.version.splitlines()[0]}'
        import imagecodecs
        from imagecodecs import _imagecodecs

        return '{}\npackagedir: {}\nversion: {}\ndependencies: {}'.format(
            pyversion,
            imagecodecs.__path__[0],
            imagecodecs.version(),
            _imagecodecs.version(),
        )
    except Exception as exc:
        return f'pytest_report_header failed: {exc!s}'

@@ -26,16 +26,229 @@
 est.py%0A%0A
+import os%0Aimport sys%0A%0Aif os.environ.get('VSCODE_CWD'):%0A    # work around pytest not using PYTHONPATH in VSCode%0A    sys.path.insert(%0A        0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))%0A    )%0A%0A
 %0Adef pyt
@@ -277,23 +277,8 @@
 ig):
-%0A    import sys
 %0A%0A  

Update tests/conftest.py