comparison tests/test_fetch_renames.py @ 78:072010a271c6

Fix basic issues with tests on Windows - shutil.rmtree() fails if there are any read-only files (svn store) - Fix files:// URLs - os.spawnvp()/Popen4() do not exist under Windows, use subprocess
author Patrick Mezard <pmezard@gmail.com>
date Sun, 09 Nov 2008 18:08:35 -0600
parents 9c1b53abefcb
children 7d10165cf3d9
comparison
equal deleted inserted replaced
77:ed3dd5bf45da 78:072010a271c6
18 self.tmpdir = tempfile.mkdtemp('svnwrap_test') 18 self.tmpdir = tempfile.mkdtemp('svnwrap_test')
19 self.repo_path = '%s/testrepo' % self.tmpdir 19 self.repo_path = '%s/testrepo' % self.tmpdir
20 self.wc_path = '%s/testrepo_wc' % self.tmpdir 20 self.wc_path = '%s/testrepo_wc' % self.tmpdir
21 21
22 def tearDown(self): 22 def tearDown(self):
23 shutil.rmtree(self.tmpdir) 23 test_util.rmtree(self.tmpdir)
24 os.chdir(self.oldwd) 24 os.chdir(self.oldwd)
25 25
26 def _load_fixture_and_fetch(self, fixture_name, stupid): 26 def _load_fixture_and_fetch(self, fixture_name, stupid):
27 return test_util.load_fixture_and_fetch(fixture_name, self.repo_path, 27 return test_util.load_fixture_and_fetch(fixture_name, self.repo_path,
28 self.wc_path, stupid=stupid) 28 self.wc_path, stupid=stupid)