bpo-31904: Skip test_expanduser and test_expanduser_pwd on VxWorks by pxinwr · Pull Request #23776 · python/cpython
@@ -1,5 +1,6 @@
import os
import posixpath
import sys
import unittest
from posixpath import realpath, abspath, dirname, basename
from test import test_genericpath
Expand Down
Expand Up
@@ -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')
Expand Down
@unittest.skipIf(sys.platform == "vxworks", "no home directory on VxWorks") def test_expanduser_pwd(self): pwd = import_helper.import_module('pwd')