src/tests/__init__.py: make path OS agnostic (slash vs backslash)

This commit is contained in:
Johannes 'josch' Schauer 2020-05-28 13:16:09 +02:00
parent 5c7ffb09a1
commit f4b296cef3
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -489,7 +489,7 @@ def test_suite():
self.skipTest("pdfrw not available") self.skipTest("pdfrw not available")
# we do not test animation.gif with pdfrw because it doesn't support # we do not test animation.gif with pdfrw because it doesn't support
# saving hexadecimal palette data # 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") self.skipTest("pdfrw does not support palletes")
with open(f, "rb") as inf: with open(f, "rb") as inf:
orig_imgdata = inf.read() orig_imgdata = inf.read()