sergey-dryabzhinsky / python-zstd

Simple python bindings to Yann Collet ZSTD compression library
BSD 2-Clause "Simplified" License
165 stars 27 forks source link

1.5.2.1: pytest is failing on checkin version #77

Closed kloczek closed 2 years ago

kloczek commented 2 years ago

Looks like version has not been updated 😄

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-zstd-1.5.2.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-zstd-1.5.2.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/python-zstd-1.5.2.1
collected 16 items

tests/test_compress.py ............                                                                                                                                  [ 75%]
tests/test_version.py ss.F                                                                                                                                           [100%]

================================================================================= FAILURES =================================================================================
___________________________________________________________________ TestZstdVersion.test_module_version ____________________________________________________________________

self = <tests.test_version.TestZstdVersion testMethod=test_module_version>

    def test_module_version(self):
>       BaseTestZSTD.helper_version(self)

tests/test_version.py:8:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/base.py:49: in helper_version
    self.assertEqual(self.PKG_VERSION, zstd.version())
E   AssertionError: '1.5.2.0' != '1.5.2.1'
E   - 1.5.2.0
E   ?       ^
E   + 1.5.2.1
E   ?       ^
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/test_version.py:13: PyZstd was build with external version of ZSTD library (1.5.2). It can be any version. Almost.
SKIPPED [1] tests/test_version.py:16: PyZstd was build with external version of ZSTD library (1.5.2). It can be any version. Almost.
FAILED tests/test_version.py::TestZstdVersion::test_module_version - AssertionError: '1.5.2.0' != '1.5.2.1'
================================================================= 1 failed, 13 passed, 2 skipped in 0.11s ==================================================================
sergey-dryabzhinsky commented 2 years ago

Yeah. Fixed in 1.5.2.2.