summaryrefslogtreecommitdiff
path: root/tests/test_apt_cache.py
AgeCommit message (Collapse)AuthorFilesLines
2014-03-22tests: Drop some more Python 2.6 cruftJulian Andres Klode1-7/+1
We do not support Python 2.6 anymore, so we can get rid of this.
2014-01-05make test_pep8.py passMichael Vogt1-19/+24
2013-10-10tests: Do not set dir::etc::sourceparts to /tmpJulian Andres Klode1-1/+2
This can cause build failures if *.list files are present in /tmp. Use /dev/null instead (not a directory, but APT silently ignores this).
2012-11-20tests/*.py: Do not prepend None to sys.path, Python 3.3 redeems that withMartin Pitt1-1/+3
an unintelligible crash.
2012-11-19* aptsources/distinfo.py, aptsources/distro.py, aptsources/sourceslist.py,Colin Watson1-4/+4
tests/test_apt_cache.py, tests/test_debfile_multiarch.py: - Use logging.warning rather than the deprecated logging.warn.
2012-11-19* tests/test_apt_cache.py, tests/test_lp659438.py, tests/test_progress.py:Colin Watson1-0/+2
- Clear out APT::Update::Post-Invoke and APT::Update::Post-Invoke-Success in tests that call cache.update to avoid pollution from the host system.
2012-10-17tests/test_apt_cache.py: delete test_cache_delete_leasks_fds() as its not ↵Michael Vogt1-10/+0
reliable
2012-10-15close cache on (re)openMichael Vogt1-0/+17
2012-10-15add changelog for lp:~jconti/python-apt/closeable-cache and add new test ↵Michael Vogt1-7/+23
"test_cache_close_download_fails"
2012-10-15merged lp:~jconti/python-apt/closeable-cache Michael Vogt1-4/+26
2012-10-12* tests/test_apt_cache.py:Jason Conti1-0/+19
- Add test to verify all files are closed after calling apt.Cache.close()
2011-12-09tests/test_apt_cache.py: use intltool instead of libc6 as the later is not ↵Michael Vogt1-2/+2
available on ia64 or kfreebsd
2011-12-08* tests/test_apt_cache.py:Michael Vogt1-0/+6
- add additional check if provides test can actually be run
2011-12-08tests/test_apt_cache.py: change test to test for python3 instead of xterm to ↵Michael Vogt1-2/+2
fix test failure on certain buildds
2011-12-01merged from lp:~mvo/apt/mvoMichael Vogt1-2/+2
2011-11-22tests/test_apt_cache.py: fix test failure by explicitely setting rootdirMichael Vogt1-1/+1
2011-11-17allow Dependency object to be iteratable, this allows to writeMichael Vogt1-2/+2
code like: for or_dep_group in pkg.candidate.dependencies: for dep in or_dep_group: do_something()
2011-10-21* python/apt_pkgmodule.cc:Michael Vogt1-0/+5
- add apt_pkg.get_architectures() call
2011-10-21merged from the debian-sid branchMichael Vogt1-1/+1
2011-10-19releasing version 0.8.1Michael Vogt1-1/+1
2011-10-05* tests/test_apt_cache.py:Michael Vogt1-0/+11
- add __cmp__ to apt.Package so that sort() sorts by name on list of package objects
2011-08-08tests/test_apt_cache.py: make the test work on PPA buildd chrootsMichael Vogt1-3/+13
2011-08-08* tests/test_apt_cache.py:Michael Vogt1-15/+16
- fix test by providing proper fixture data
2011-08-08fix tests by adding ariticial data for the test_apt_cache testMichael Vogt1-15/+16
2011-08-01test fixes with the latest aptMichael Vogt1-2/+8
2011-08-01test fixesMichael Vogt1-4/+5
2011-04-06tests/test_apt_cache.py: Use assertTrue() instead of assert_()Julian Andres Klode1-3/+3
2011-04-06all: Fix all instances of ResourceWarning about unclosed filesJulian Andres Klode1-12/+11
2011-04-05Change apt_pkg.Cache() so that passing None for 'progress' results inJulian Andres Klode1-1/+1
no progress output
2011-04-04* tests/test_apt_cache.py:Julian Andres Klode1-2/+2
- Package records 'Package' field now corresponds to shortname
2010-12-13tests/test_apt_cache.py: fix testsMichael Vogt1-3/+3
2010-11-24* tests/test_apt_cache.py:Michael Vogt1-10/+7
- fix tests to work if apt compressed indexes are enabled
2010-09-08fix a bunch of python3.1 releated test failuresMichael Vogt1-2/+2
2010-09-07merged from lp:~mvo/python-apt/mvoMichael Vogt1-1/+6
2010-09-07tests/test_apt_cache.py: reset apt_pkg.config when running the testsMichael Vogt1-0/+4
2010-09-07tests/test_apt_cache.py: fix testMichael Vogt1-1/+2
2010-09-07* merged patch from Samuel Lidén Borell to fix crash if there utf8 Michael Vogt1-1/+63
in the control file (LP: #624290) and add test * apt/cache.py: - add "sources_list" parameter to cache.update() to force updating a single sources.list entry only * debian/control: - add missing build-depends on python-debian (needed to run the tests for apt.debfile.DebPackage() * apt/debfile: - don't fail if we conflict with the pkgs we are reinstalling
2010-09-07tests/test_apt_cache.py: improve the tests so that they do not require a ↵Michael Vogt1-19/+44
working network
2010-09-03not not depend on network when running the tests, some style fixes (thanks ↵Michael Vogt1-6/+7
to Jak for the code-review)
2010-09-03* apt/cache.py:Michael Vogt1-1/+37
- add "sources_list" parameter to cache.update() to force updating a single sources.list entry only
2010-08-31tests/test_apt_cache.py: add test for provides_listMichael Vogt1-1/+14
2010-08-31* add "provides" property to the apt.Version objectsMichael Vogt1-0/+3
* apt/debfile.py: - fix error when reading binary content and add regresion test
2010-08-27add "provides" property to the apt.Version objectsMichael Vogt1-0/+3
2010-08-26* tests/test_apt_cache.py:Julian Andres Klode1-1/+2
- Do not insert ".." into sys.path, fixes FTBFS
2010-07-06tests/test_apt_cache.py: fixes for 0.8 compatibilityMichael Vogt1-3/+3
2010-07-02merged lp:~kiwinote/python-apt/merge-gdebi-changes, this port theMichael Vogt1-2/+20
DebPackage class fixes from gdebi into python-apt so that gdebi can use the class from python-apt directly
2010-06-29* apt/cache.py:Michael Vogt1-0/+26
- add new "dpkg_journal_dirty" property that can be used to detect a interrupted dpkg (the famous "E: dpkg was interrupted, you must manually run 'dpkg --configure -a'")
2010-06-25tests/test_apt_cache.py: Test accessing the record of all packages duringMartin Pitt1-0/+9
iteration. This both ensures that it's well-formatted and structured, and also that accessing it does not take an inordinate amount of time. This exposes a severe performance problem when using gzip compressed package indexes.
2010-03-26Merge with mvo, with the following changes:Julian Andres Klode1-0/+34
* python/generic.cc is changed instead of python/indexfile.cc to add the ArchiveURI property * tests/test_apt_cache.py is changed to assert the properties of the Dependency object instead of assigning them to a variable. The additions to the changelog are: [ Julian Andres Klode ] - Map ArchiveURI property to archive_uri [ Michael Vogt ] * apt/cache.py: - make cache open silent by default (use apt.progress.base.OpProgress) * tests/data/aptsources_ports/sources.list: - fix ports test-data * tests/test_apt_cache.py: - add simple test for basic cache/dependency iteration
2010-03-23* tests/test_apt_cache.py:Michael Vogt1-0/+34
- add simple test for basic cache/dependency iteration