changeset: 96001:e5a53d75dc19 user: Zachary Ware date: Tue May 12 23:57:21 2015 -0500 files: Lib/test/test_tarfile.py description: 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. diff -r d246984e1ca0 -r e5a53d75dc19 Lib/test/test_tarfile.py --- a/Lib/test/test_tarfile.py Tue May 12 21:42:40 2015 -0700 +++ b/Lib/test/test_tarfile.py Tue May 12 23:57:21 2015 -0500 @@ -2279,6 +2279,8 @@ 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