There was an error while loading. Please reload this page.
1 parent 22554ca commit 2489deeCopy full SHA for 2489dee
1 file changed
Lib/test/support/__init__.py
@@ -2598,3 +2598,8 @@ def control_characters_c0() -> list[str]:
2598
C0 control characters defined as the byte range 0x00-0x1F, and 0x7F.
2599
"""
2600
return [chr(c) for c in range(0x00, 0x20)] + ["\x7F"]
2601
+
2602
2603
+_ROOT_IN_POSIX = hasattr(os, 'geteuid') and os.geteuid() == 0
2604
+requires_root_user = unittest.skipUnless(_ROOT_IN_POSIX, "test needs root privilege")
2605
+requires_non_root_user = unittest.skipIf(_ROOT_IN_POSIX, "test needs non-root account")
0 commit comments