We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f218cfd commit 3d67ee2Copy full SHA for 3d67ee2
1 file changed
tests/test_libzim_creator.py
@@ -3,6 +3,7 @@
3
import base64
4
import datetime
5
import itertools
6
+import os
7
import pathlib
8
import subprocess
9
import sys
@@ -774,9 +775,10 @@ def get_contentprovider(self):
774
775
776
777
def test_creator_badfilename(tmpdir):
- # lack of perm
778
- with pytest.raises(IOError):
779
- Creator("/root/test.zim")
+ if os.getuid() != 0:
+ # lack of perm
780
+ with pytest.raises(IOError):
781
+ Creator("/root/test.zim")
782
783
# forward slash points to non-existing folder
784
with pytest.raises(IOError):
0 commit comments