2f155fc Do not try to load wasm tests

Authored and Committed by zbyszek 3 years ago
    Do not try to load wasm tests
    
    >   return pytest.fixture(lambda: specialize(FilesystemFile(filename)))
    
    tests/utils/data.py:36:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    diffoscope/comparators/utils/specialize.py:55: in specialize
        if try_recognize(file, cls, cls.recognizes):
    diffoscope/comparators/utils/specialize.py:38: in try_recognize
        if not recognizes(file):
    diffoscope/comparators/utils/file.py:175: in recognizes
        return _run_tests(all, all_tests) if all_tests else False
    diffoscope/comparators/utils/file.py:65: in _run_tests
        return fold(t(y, x) for x, t, y in tests)
    diffoscope/comparators/utils/file.py:65: in <genexpr>
        return fold(t(y, x) for x, t, y in tests)
    diffoscope/comparators/utils/file.py:65: in _run_tests
        return fold(t(y, x) for x, t, y in tests)
    diffoscope/comparators/utils/file.py:65: in <genexpr>
        return fold(t(y, x) for x, t, y in tests)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    
    m = None, t = re.compile('
    
    >               lambda m, t: t.search(m),
                    file.magic_file_type,
                ),
                (
                    cls.FILE_TYPE_HEADER_PREFIX,
                    bytes.startswith,
                    file.file_header,
                ),
            )
            if test[0]
        ]  # filter out undefined tests
    E   TypeError: expected string or bytes-like object
    
    diffoscope/comparators/utils/file.py:154: TypeError
    
        
file modified
+3 -0