diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-05-13 04:57:21 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-05-13 04:57:21 (GMT) |
commit | ad3e27ae4c2c21d422603eab36c6b48e6e09f732 (patch) | |
tree | 3d2870271a0f6aa4af9f4fa49cad81543cf695f7 /Lib/test/test_tarfile.py | |
parent | 849564f874fe55e505078ad09010daa66fc95ecb (diff) | |
download | cpython-ad3e27ae4c2c21d422603eab36c6b48e6e09f732.zip cpython-ad3e27ae4c2c21d422603eab36c6b48e6e09f732.tar.gz cpython-ad3e27ae4c2c21d422603eab36c6b48e6e09f732.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_tarfile.py')
-rw-r--r-- | Lib/test/test_tarfile.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index 6c20634..45c30ab 100644 --- 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 |