bpo-31904: Skip os.path.expanduser() tests on VxWorks (GH-23776)
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py
index 42fd8ef..e18d01f 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')