diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-07-29 19:17:06 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-07-29 19:17:06 +0200 |
| commit | c8bd732d5cb8be16ae48f8a72a4ed8a266b4ce36 (patch) | |
| tree | 165bceb2ebc9f28bc5d36c13776fe8d63095c227 /tests/test_aptsources_ports.py | |
| parent | 9236b4b1289e9e5ffdfa6c96cac0bd479e2dcd13 (diff) | |
| download | python-apt-c8bd732d5cb8be16ae48f8a72a4ed8a266b4ce36.tar.gz | |
* tests/test_aptsources_ports.py, tests/test_aptsources.py:
- use tmpdir during the tests to fix test failure with apt from
experimental
Diffstat (limited to 'tests/test_aptsources_ports.py')
| -rw-r--r-- | tests/test_aptsources_ports.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_aptsources_ports.py b/tests/test_aptsources_ports.py index 991b532a..67c21b9c 100644 --- a/tests/test_aptsources_ports.py +++ b/tests/test_aptsources_ports.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import os import unittest - +import tempfile import apt_pkg import aptsources.sourceslist @@ -17,7 +17,7 @@ class TestAptSourcesPorts(unittest.TestCase): apt_pkg.config.set("APT::Architecture", "powerpc") apt_pkg.config.set("Dir::Etc", os.path.abspath("data/aptsources_ports")) - apt_pkg.config.set("Dir::Etc::sourceparts", "/xxx") + apt_pkg.config.set("Dir::Etc::sourceparts", tempfile.mkdtemp()) if os.path.exists("../build/data/templates"): self.templates = os.path.abspath("../build/data/templates") else: |
