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 8952b82 commit 5b0f00eCopy full SHA for 5b0f00e
Lib/test/test_dbm_sqlite3.py
@@ -16,6 +16,11 @@
16
from dbm.sqlite3 import _normalize_uri
17
18
19
+root_in_posix = False
20
+if hasattr(os, 'geteuid'):
21
+ root_in_posix = (os.geteuid() == 0)
22
+
23
24
class _SQLiteDbmTests(unittest.TestCase):
25
26
def setUp(self):
@@ -92,6 +97,7 @@ def test_readonly_iter(self):
92
97
self.assertEqual([k for k in self.db], [b"key1", b"key2"])
93
98
94
99
100
+@unittest.skipIf(root_in_posix, "test is meanless with root privilege")
95
101
class ReadOnlyFilesystem(unittest.TestCase):
96
102
103
0 commit comments