diff options
| author | Julian Andres Klode <jak@debian.org> | 2013-10-14 19:14:29 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2013-10-14 19:14:29 +0200 |
| commit | 10641ad184e53e165cb655f3bcf01ece430cc00e (patch) | |
| tree | 97086329c42c8acedd9e2165b55103f161ad2b3f /tests | |
| parent | 173e3de24749ebf27903603bd5a7c84aadfdeea8 (diff) | |
| download | python-apt-10641ad184e53e165cb655f3bcf01ece430cc00e.tar.gz | |
tests/test_path.py: Use "Dir" option instead of "RootDir", and reset in tearDown
This fixes tests/test_all.py.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_paths.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_paths.py b/tests/test_paths.py index d4fe21d0..17f562d2 100644 --- a/tests/test_paths.py +++ b/tests/test_paths.py @@ -25,6 +25,7 @@ class TestPath(unittest.TestCase): os.mkdir(self.dir_bytes) def tearDown(self): + apt_pkg.config["dir"] = "/" shutil.rmtree(self.dir_bytes) def test_acquire(self): @@ -75,8 +76,7 @@ class TestPath(unittest.TestCase): apt_pkg.read_config_dir(apt_pkg.config, b"/etc/apt/apt.conf.d") def test_index_file(self): - apt_pkg.config["rootdir"] = "data/test_debs" - cache = apt_pkg.Cache(None) + apt_pkg.config["dir"] = "data/test_debs" slist = apt_pkg.SourceList() slist.read_main_list() @@ -108,7 +108,7 @@ class TestPath(unittest.TestCase): pass def test_policy(self): - apt_pkg.config["rootdir"] = "data/test_debs" + apt_pkg.config["dir"] = "data/test_debs" cache = apt_pkg.Cache(None) policy = apt_pkg.Policy(cache) file_unicode = os.path.join(self.dir_unicode, u"test.prefs") |
