bpo-31904: Skip os.path.expanduser() tests on VxWorks (GH-23776)
This commit is contained in:
parent
9a0dea6137
commit
b230409f21
|
@ -2467,6 +2467,8 @@ class PosixPathTest(_BasePathTest, unittest.TestCase):
|
||||||
|
|
||||||
@unittest.skipUnless(hasattr(pwd, 'getpwall'),
|
@unittest.skipUnless(hasattr(pwd, 'getpwall'),
|
||||||
'pwd module does not expose getpwall()')
|
'pwd module does not expose getpwall()')
|
||||||
|
@unittest.skipIf(sys.platform == "vxworks",
|
||||||
|
"no home directory on VxWorks")
|
||||||
def test_expanduser(self):
|
def test_expanduser(self):
|
||||||
P = self.cls
|
P = self.cls
|
||||||
import_helper.import_module('pwd')
|
import_helper.import_module('pwd')
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import os
|
import os
|
||||||
import posixpath
|
import posixpath
|
||||||
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
from posixpath import realpath, abspath, dirname, basename
|
from posixpath import realpath, abspath, dirname, basename
|
||||||
from test import test_genericpath
|
from test import test_genericpath
|
||||||
|
@ -262,6 +263,8 @@ class PosixPathTest(unittest.TestCase):
|
||||||
self.assertEqual(posixpath.expanduser("~/"), "/")
|
self.assertEqual(posixpath.expanduser("~/"), "/")
|
||||||
self.assertEqual(posixpath.expanduser("~/foo"), "/foo")
|
self.assertEqual(posixpath.expanduser("~/foo"), "/foo")
|
||||||
|
|
||||||
|
@unittest.skipIf(sys.platform == "vxworks",
|
||||||
|
"no home directory on VxWorks")
|
||||||
def test_expanduser_pwd(self):
|
def test_expanduser_pwd(self):
|
||||||
pwd = import_helper.import_module('pwd')
|
pwd = import_helper.import_module('pwd')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue