Commit ad3e27ae authored by Zachary Ware's avatar Zachary Ware

Issue #23193: Skip numeric_owner tests on platforms where they don't make sense

In particular, the tests bomb out on Windows.  The feature is a no-op on platforms
without the pwd module or os.geteuid anyway.
parent 849564f8
......@@ -2279,6 +2279,8 @@ def root_is_uid_gid_0():
return True
@unittest.skipUnless(hasattr(os, 'chown'), "missing os.chown")
@unittest.skipUnless(hasattr(os, 'geteuid'), "missing os.geteuid")
class NumericOwnerTest(unittest.TestCase):
# mock the following:
# os.chown: so we can test what's being called
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment