From f4b296cef395b85f7e85aaa3b9ea667a2632452e Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Thu, 28 May 2020 13:16:09 +0200 Subject: [PATCH] src/tests/__init__.py: make path OS agnostic (slash vs backslash) --- src/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/__init__.py b/src/tests/__init__.py index 75b5428..a565b8a 100644 --- a/src/tests/__init__.py +++ b/src/tests/__init__.py @@ -489,7 +489,7 @@ def test_suite(): self.skipTest("pdfrw not available") # we do not test animation.gif with pdfrw because it doesn't support # saving hexadecimal palette data - if f.endswith("/animation.gif") and engine == img2pdf.Engine.pdfrw: + if f.endswith(os.path.sep+"animation.gif") and engine == img2pdf.Engine.pdfrw: self.skipTest("pdfrw does not support palletes") with open(f, "rb") as inf: orig_imgdata = inf.read()