# -*- coding: utf-8 -*-
# imagecodecs/conftest.py


def pytest_report_header(config):
    import os

    try:
        if 'imagecodecs_lite' in os.path.abspath(__file__):
            import imagecodecs_lite

            return 'packagedir: %s\nversion: %s' % (
                imagecodecs_lite.__path__[0],
                imagecodecs_lite.version(),
            )
        else:
            import imagecodecs
            from imagecodecs import imagecodecs as imagecodecs_py

            return 'packagedir: %s\nversion: %s\nversions Py: %s' % (
                imagecodecs.__path__[0],
                imagecodecs.version(),
                imagecodecs_py.version(),
            )
    except Exception as e:
        return 'pytest_report_header failed: %s' % str(e)

@@ -94,20 +94,97 @@
 ort 
-os%0A%0A    try:
+sys%0A    import os%0A%0A    try:%0A        pyversion = 'Python %25s' %25 sys.version.splitlines()%5B0%5D
 %0A   
@@ -289,32 +289,35 @@
         return '
+%25s%5C
 packagedir: %25s%5Cn
@@ -325,32 +325,59 @@
 ersion: %25s' %25 (%0A
+                pyversion,%0A
                 
@@ -596,16 +596,20 @@
 return '
+%25s%5Cn
 packaged
@@ -642,32 +642,59 @@
 ons Py: %25s' %25 (%0A
+                pyversion,%0A
                 

Update tests/conftest.py