mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
Avoid 'Abort: Illegal repository URL' exception
This commit is contained in:
parent
86c848fa77
commit
7ef4f586e9
@ -22,7 +22,7 @@ class TestBasicRepoLayout(unittest.TestCase):
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT)
|
||||
assert proc == 0
|
||||
self.repo = svnwrap.SubversionRepo('file://%s' % self.repo_path)
|
||||
self.repo = svnwrap.SubversionRepo(test_util.fileurl(self.repo_path))
|
||||
|
||||
def tearDown(self):
|
||||
shutil.rmtree(self.tmpdir)
|
||||
@ -68,8 +68,10 @@ class TestRootAsSubdirOfRepo(TestBasicRepoLayout):
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT)
|
||||
assert ret == 0
|
||||
self.repo = svnwrap.SubversionRepo('file://%s/dummyproj' %
|
||||
self.repo_path)
|
||||
self.repo = svnwrap.SubversionRepo(test_util.fileurl(
|
||||
self.repo_path + '/dummyproj'
|
||||
))
|
||||
|
||||
def suite():
|
||||
all = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout),
|
||||
unittest.TestLoader().loadTestsFromTestCase(TestRootAsSubdirOfRepo)]
|
||||
|
Loading…
Reference in New Issue
Block a user