bpo-31904: Disable os.popen and popen test cases on VxWorks (GH-21687)

This commit is contained in:
pxinwr 2020-12-16 05:20:07 +08:00 committed by GitHub
parent 9cc8fa6ac8
commit e1e3c2dac3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 58 additions and 46 deletions

View file

@ -1045,6 +1045,7 @@ class PosixTester(unittest.TestCase):
@unittest.skipUnless(hasattr(os, 'getegid'), "test needs os.getegid()")
@unittest.skipUnless(hasattr(os, 'popen'), "test needs os.popen()")
def test_getgroups(self):
with os.popen('id -G 2>/dev/null') as idg:
groups = idg.read().strip()