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