diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-08-01 10:11:06 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-08-01 10:11:06 +0200 |
| commit | 46ce7f8798bc963f1c647b21839488038a79d909 (patch) | |
| tree | a5fb5443b0bcdc02b35c5d83df16a06168911e38 /tests/test_progress.py | |
| parent | 941a9debfcf884aebc616053774d0fe94c2e8f59 (diff) | |
| parent | c8bd732d5cb8be16ae48f8a72a4ed8a266b4ce36 (diff) | |
| download | python-apt-46ce7f8798bc963f1c647b21839488038a79d909.tar.gz | |
merged from the debian-sid branch
Diffstat (limited to 'tests/test_progress.py')
| -rw-r--r-- | tests/test_progress.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_progress.py b/tests/test_progress.py index ffab5bc0..73853dfa 100644 --- a/tests/test_progress.py +++ b/tests/test_progress.py @@ -34,7 +34,8 @@ class TestProgress(unittest.TestCase): apt_pkg.config.set("Dir::state::lists", "./tmp") # create artifical line deb_line = "deb file:%s/data/fake-packages/ /\n" % basedir - open("fetch_sources.list","w").write(deb_line) + with open("fetch_sources.list","w") as fobj: + fobj.write(deb_line) apt_pkg.config.set("Dir::Etc::sourcelist", "fetch_sources.list") def test_acquire_progress(self): |
