comparison test/test_readconfig.py @ 185:e1c7cd896310

Rework test/filesupport.py so that test cases always use their own temporary directory. Before, the test cases had to ensure this themselves. Adapt the test cases.
author Bernhard Herzog <bh@intevation.de>
date Thu, 26 Jun 2008 16:23:26 +0000
parents 36004ee0b3a1
children eaa696629a91
comparison
equal deleted inserted replaced
184:83c77307ffb1 185:e1c7cd896310
60 "\n".join(["class PackageTrack:", 60 "\n".join(["class PackageTrack:",
61 " extra_config_desc=['orig_tarball']", 61 " extra_config_desc=['orig_tarball']",
62 ""]))])] 62 ""]))])]
63 63
64 def setUp(self): 64 def setUp(self):
65 self.directory = self.create_temp_dir(self.id()) 65 self.directory = self.create_files("treepkg", self.files)
66 self.create_files(self.directory, self.files)
67 self.old_path = sys.path 66 self.old_path = sys.path
68 sys.path = [self.directory] + sys.path 67 sys.path = [self.directory] + sys.path
69 68
70 def tearDown(self): 69 def tearDown(self):
71 sys.path = self.old_path 70 sys.path = self.old_path
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)