diff options
| -rw-r--r-- | debian/changelog | 2 | ||||
| -rw-r--r-- | tests/test_apt_cache.py | 3 | ||||
| -rw-r--r-- | tests/test_progress.py | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index 39306d8b..77c64d82 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,8 @@ python-apt (0.9.0) UNRELEASED; urgency=low - Fix documentation of version_compare (Closes: #680891) * apt/package.py: - Add a Package.has_config_files property (Closes: #712749) + * tests: + - Do not set dir::etc::sourceparts to /tmp [ Jeremy Bicha ] * data/templates/Ubuntu.info.in: add 'devel' series (Closes: #722961) diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py index 21dfeb98..9940374f 100644 --- a/tests/test_apt_cache.py +++ b/tests/test_apt_cache.py @@ -188,7 +188,8 @@ class TestAptCache(TestCase): old_source_list = apt_pkg.config.find("dir::etc::sourcelist") old_source_parts = apt_pkg.config.find("dir::etc::sourceparts") apt_pkg.config.set("dir::etc::sourcelist", base_sources) - apt_pkg.config.set("dir::etc::sourceparts", "/tmp") + # TODO: /dev/null is not a dir, perhaps find something better + apt_pkg.config.set("dir::etc::sourceparts", "/dev/null") # main sources.list sources_list = base_sources with open(sources_list, "w") as f: diff --git a/tests/test_progress.py b/tests/test_progress.py index b7bba02f..e4a5fa3c 100644 --- a/tests/test_progress.py +++ b/tests/test_progress.py @@ -27,7 +27,8 @@ class TestProgress(unittest.TestCase): apt_pkg.init() apt_pkg.config.set("APT::Architecture", "amd64") apt_pkg.config.set("Dir::Etc", basedir) - apt_pkg.config.set("Dir::Etc::sourceparts", "/tmp") + # TODO: /dev/null is not a dir, perhaps find something better + apt_pkg.config.set("Dir::Etc::sourceparts", "/dev/null") # setup lists dir if not os.path.exists("./tmp/partial"): os.makedirs("./tmp/partial") |
