[Python-checkins] bpo-31904: Skip os.path.expanduser() tests on VxWorks (GH-23776)

vstinner webhook-mailer at python.org
Tue Dec 15 16:24:12 EST 2020


https://github.com/python/cpython/commit/b230409f21f5e5b42de6ec10147cd95ae3bdd095
commit: b230409f21f5e5b42de6ec10147cd95ae3bdd095
branch: master
author: pxinwr <peixing.xin at windriver.com>
committer: vstinner <vstinner at python.org>
date: 2020-12-15T22:24:00+01:00
summary:

bpo-31904: Skip os.path.expanduser() tests on VxWorks (GH-23776)

files:
M Lib/test/test_pathlib.py
M Lib/test/test_posixpath.py

diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
index 7f7f72c625806..9be72941d3354 100644
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -2467,6 +2467,8 @@ def test_rglob(self):
 
     @unittest.skipUnless(hasattr(pwd, 'getpwall'),
                          'pwd module does not expose getpwall()')
+    @unittest.skipIf(sys.platform == "vxworks",
+                     "no home directory on VxWorks")
     def test_expanduser(self):
         P = self.cls
         import_helper.import_module('pwd')
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py
index 42fd8ef8b1746..e18d01f4635a3 100644
--- a/Lib/test/test_posixpath.py
+++ b/Lib/test/test_posixpath.py
@@ -1,5 +1,6 @@
 import os
 import posixpath
+import sys
 import unittest
 from posixpath import realpath, abspath, dirname, basename
 from test import test_genericpath
@@ -262,6 +263,8 @@ def test_expanduser_home_envvar(self):
                     self.assertEqual(posixpath.expanduser("~/"), "/")
                     self.assertEqual(posixpath.expanduser("~/foo"), "/foo")
 
+    @unittest.skipIf(sys.platform == "vxworks",
+                     "no home directory on VxWorks")
     def test_expanduser_pwd(self):
         pwd = import_helper.import_module('pwd')
 



More information about the Python-checkins mailing list