summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pathlib.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2015-12-28 21:50:19 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2015-12-28 21:50:19 (GMT)
commitac1e7f6983ef4f0feef6389d458544bf924f6965 (patch)
treef66de4c61a9bc0149cb78f1a012505c26c400310 /Lib/test/test_pathlib.py
parent1e3c3e906c9f1fcc463cfb3641d078eec773666f (diff)
downloadcpython-ac1e7f6983ef4f0feef6389d458544bf924f6965.zip
cpython-ac1e7f6983ef4f0feef6389d458544bf924f6965.tar.gz
cpython-ac1e7f6983ef4f0feef6389d458544bf924f6965.tar.bz2
Remove duplicate method in test_pathlib. Initial patch by Navneet Suman.
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 1c53ab7..80cb97e 100644
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -1437,14 +1437,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