brotlicffi icon indicating copy to clipboard operation
brotlicffi copied to clipboard

test_brotli_version test broken when using pypi sdist

Open apteryks opened this issue 1 year ago • 0 comments

Hi,

Running the test suite of 1.1.0.0 with pytest from its sdist (pypi hosted) source, I see:

_____________________________ test_brotli_version ______________________________

    def test_brotli_version():
        """
        Test that the __version__ starts with the
        Brotli version that's compiled with.
        """
        version_h = join(
            dirname(dirname(abspath(__file__))), "libbrotli/c/common/version.h"
        )
>       with open(version_h) as f:
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/guix-build-python-brotlicffi-1.1.0.0.drv-0/brotlicffi-1.1.0.0/libbrotli/c/common/version.h'

test/test_compatibility.py:31: FileNotFoundError

apteryks avatar Dec 02 '24 00:12 apteryks