summaryrefslogtreecommitdiff
path: root/Lib/test/test_pathlib.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-05-28 14:48:19 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2016-05-28 14:48:19 +0300
commitf5a86603829104d675112c1aa35f4a7bdd32110e (patch)
treef3427e72d0382510cc719e3817782ae290ab91ad /Lib/test/test_pathlib.py
parent95de54494fb75a30f417c5bba1d0db4d54f57d29 (diff)
parentc7aaeb9022c01fbc190a6c6eb9df9cf7b0c14347 (diff)
downloadcpython-f5a86603829104d675112c1aa35f4a7bdd32110e.tar.gz
Issue #27138: Regenerate Python/importlib_external.h.
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r--Lib/test/test_pathlib.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
index fa96d9f882..fbbd448f65 100644
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -1474,14 +1474,14 @@ class _BasePathTest(object):
self.assertEqual(set(p.glob("dirA/../file*")), { P(BASE, "dirA/../fileA") })
self.assertEqual(set(p.glob("../xyzzy")), set())
- def _check_resolve_relative(self, p, expected):
- q = p.resolve()
- self.assertEqual(q, expected)
- def _check_resolve_absolute(self, p, expected):
+ def _check_resolve(self, p, expected):
q = p.resolve()
self.assertEqual(q, expected)
+ # this can be used to check both relative and absolute resolutions
+ _check_resolve_relative = _check_resolve_absolute = _check_resolve
+
@with_symlinks
def test_resolve_common(self):
P = self.cls