Skip to content

Commit

Permalink
Isues spotted in review
Browse files Browse the repository at this point in the history
  • Loading branch information
homm committed Jul 16, 2024
1 parent 658362a commit bfa73ce
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Tests/test_file_webp_animated.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
skip_unless_feature,
)

pytestmark = [skip_unless_feature("webp")]
pytestmark = skip_unless_feature("webp")


def test_n_frames() -> None:
Expand Down
2 changes: 1 addition & 1 deletion Tests/test_file_webp_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from .helper import mark_if_feature_version, skip_unless_feature

pytestmark = [skip_unless_feature("webp")]
pytestmark = skip_unless_feature("webp")

ElementTree: ModuleType | None
try:
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,12 @@ def build_extensions(self):
_dbg("Looking for webp")
if all(
_find_include_file(self, src)
for src in ["webp/encode.h", "webp/mux.h", "webp/demux.h"]
for src in [
"webp/encode.h",
"webp/decode.h",
"webp/mux.h",
"webp/demux.h",
]
):
# In Google's precompiled zip it is call "libwebp":
if all(
Expand Down
2 changes: 1 addition & 1 deletion src/_webp.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ setup_module(PyObject *m) {
}

PyObject *v = PyUnicode_FromString(WebPDecoderVersion_str());
PyModule_AddObject(m, "webpdecoder_version", v ? v : Py_None);
PyModule_AddObject(m, "webpdecoder_version", v);

return 0;
}
Expand Down

0 comments on commit bfa73ce

Please sign in to comment.