Skip to content

Commit 3c4b6dd

Browse files
committed
Test version on windows too
1 parent 9fb253b commit 3c4b6dd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_zlib_compliance.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,18 @@
3737

3838
class VersionTestCase(unittest.TestCase):
3939

40-
@unittest.skipIf(
41-
sys.platform.startswith("win"),
42-
"isa-l.h with version information does not exist on Windows")
4340
def test_library_version(self):
4441
# Test that the major version of the actual library in use matches the
4542
# major version that we were compiled against. We can't guarantee that
4643
# the minor versions will match (even on the machine on which the
4744
# module was compiled), and the API is stable between minor versions,
4845
# so testing only the major versions avoids spurious failures.
4946
# TODO: Ask for isal current version upstream
50-
self.assertEqual(isal.ISAL_MAJOR_VERSION, 2)
47+
if sys.platform.startswith("win"):
48+
# No isa-l.h on windows, so no version information there.
49+
self.assertEqual(isal.ISAL_MAJOR_VERSION, None)
50+
else:
51+
self.assertEqual(isal.ISAL_MAJOR_VERSION, 2)
5152

5253

5354
class ChecksumTestCase(unittest.TestCase):

0 commit comments

Comments
 (0)