]> granicus.if.org Git - python/commit
Fix regression in issue 22457 fix.
authorRobert Collins <rbtcollins@hp.com>
Tue, 4 Nov 2014 14:43:36 +0000 (03:43 +1300)
committerRobert Collins <rbtcollins@hp.com>
Tue, 4 Nov 2014 14:43:36 +0000 (03:43 +1300)
commit68b11d129dc28f741e5522fe07b4b935c0d59198
treea7741d97f90a7ee5c6f35974fcbbe60f252178e8
parentbf2bda3c9704181cebb6163f5eacd5ad4e1c15f4
Fix regression in issue 22457 fix.

When used in the real world it can under some situations trigger
"    assert not _relpath.startswith('..'), "Path must be within the project"
     AssertionError: Path must be within the project
"

Because _get_name_from_path was not expecting to be called with the top level
directory.
Lib/unittest/loader.py