bpo-31904: Skip os.path.expanduser() tests on VxWorks (GH-23776) · python/cpython@b230409 (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -2467,6 +2467,8 @@ def test_rglob(self):
2467 2467
2468 2468 @unittest.skipUnless(hasattr(pwd, 'getpwall'),
2469 2469 'pwd module does not expose getpwall()')
2470 +@unittest.skipIf(sys.platform == "vxworks",
2471 + "no home directory on VxWorks")
2470 2472 def test_expanduser(self):
2471 2473 P = self.cls
2472 2474 import_helper.import_module('pwd')
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
1 1 import os
2 2 import posixpath
3 +import sys
3 4 import unittest
4 5 from posixpath import realpath, abspath, dirname, basename
5 6 from test import test_genericpath
@@ -262,6 +263,8 @@ def test_expanduser_home_envvar(self):
262 263 self.assertEqual(posixpath.expanduser("~/"), "/")
263 264 self.assertEqual(posixpath.expanduser("~/foo"), "/foo")
264 265
266 +@unittest.skipIf(sys.platform == "vxworks",
267 + "no home directory on VxWorks")
265 268 def test_expanduser_pwd(self):
266 269 pwd = import_helper.import_module('pwd')
267 270