comparison tests/test_svnwrap.py @ 480:7fa100ae1a11

Avoid 'Abort: Illegal repository URL' exception
author Risto Kankkunen <risto.kankkunen@iki.fi>
date Wed, 29 Jul 2009 17:41:40 +0300
parents 83fcb1cf6d8f
children e5a9c824ffbf
comparison
equal deleted inserted replaced
479:83fcb1cf6d8f 480:7fa100ae1a11
20 stdin=inp, 20 stdin=inp,
21 close_fds=test_util.canCloseFds, 21 close_fds=test_util.canCloseFds,
22 stdout=subprocess.PIPE, 22 stdout=subprocess.PIPE,
23 stderr=subprocess.STDOUT) 23 stderr=subprocess.STDOUT)
24 assert proc == 0 24 assert proc == 0
25 self.repo = svnwrap.SubversionRepo('file://%s' % self.repo_path) 25 self.repo = svnwrap.SubversionRepo(test_util.fileurl(self.repo_path))
26 26
27 def tearDown(self): 27 def tearDown(self):
28 shutil.rmtree(self.tmpdir) 28 shutil.rmtree(self.tmpdir)
29 29
30 30
66 stdin=inp, 66 stdin=inp,
67 close_fds=test_util.canCloseFds, 67 close_fds=test_util.canCloseFds,
68 stdout=subprocess.PIPE, 68 stdout=subprocess.PIPE,
69 stderr=subprocess.STDOUT) 69 stderr=subprocess.STDOUT)
70 assert ret == 0 70 assert ret == 0
71 self.repo = svnwrap.SubversionRepo('file://%s/dummyproj' % 71 self.repo = svnwrap.SubversionRepo(test_util.fileurl(
72 self.repo_path) 72 self.repo_path + '/dummyproj'
73 ))
74
73 def suite(): 75 def suite():
74 all = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout), 76 all = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout),
75 unittest.TestLoader().loadTestsFromTestCase(TestRootAsSubdirOfRepo)] 77 unittest.TestLoader().loadTestsFromTestCase(TestRootAsSubdirOfRepo)]
76 return unittest.TestSuite(all) 78 return unittest.TestSuite(all)