Skip to content

Commit

Permalink
Remove duplicate method in test_pathlib. Initial patch by Navneet Suman.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezio-melotti committed Dec 28, 2015
1 parent 1e3c3e9 commit ac1e7f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Lib/test/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1437,14 +1437,14 @@ def test_glob_dotdot(self):
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
Expand Down

0 comments on commit ac1e7f6

Please sign in to comment.