summaryrefslogtreecommitdiff
path: root/Lib/test/test_pathlib.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2015-12-28 23:50:19 +0200
committerEzio Melotti <ezio.melotti@gmail.com>2015-12-28 23:50:19 +0200
commitc03d52305867f81c40034f830c514e20bc12047f (patch)
treea64ee4dbefc8263ad8faac8b4c4d48b75e1424fc /Lib/test/test_pathlib.py
parent881583881808cb2123cb1c7d9b03f278dd5df37d (diff)
downloadcpython-c03d52305867f81c40034f830c514e20bc12047f.tar.gz
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 1c53ab78ea..80cb97e97a 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