File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 37
37
38
38
class VersionTestCase (unittest .TestCase ):
39
39
40
- @unittest .skipIf (
41
- sys .platform .startswith ("win" ),
42
- "isa-l.h with version information does not exist on Windows" )
43
40
def test_library_version (self ):
44
41
# Test that the major version of the actual library in use matches the
45
42
# major version that we were compiled against. We can't guarantee that
46
43
# the minor versions will match (even on the machine on which the
47
44
# module was compiled), and the API is stable between minor versions,
48
45
# so testing only the major versions avoids spurious failures.
49
46
# 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 )
51
52
52
53
53
54
class ChecksumTestCase (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments