cpython: e5a53d75dc19 (original) (raw)
Mercurial > cpython
changeset 96001:e5a53d75dc19
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. [#23193]
Zachary Ware zachary.ware@gmail.com | |
---|---|
date | Tue, 12 May 2015 23:57:21 -0500 |
parents | d246984e1ca0 |
children | bbdbc4399b52 |
files | Lib/test/test_tarfile.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-)[+] [-] Lib/test/test_tarfile.py 2 |
line wrap: on
line diff
--- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -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