From: Ezio Melotti Date: Mon, 28 Dec 2015 21:50:19 +0000 (+0200) Subject: Remove duplicate method in test_pathlib. Initial patch by Navneet Suman. X-Git-Tag: v3.6.0a1~855 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac1e7f6983ef4f0feef6389d458544bf924f6965;p=python Remove duplicate method in test_pathlib. Initial patch by Navneet Suman. --- 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