Yeah, our build system is somewhat broken. It's from very early when Python 3 support was introduced and just hacked to make work with new changed.
I did not catch the stderr thing, as it is not shown by default in normal testing environments. I can adjust the tests to check the deprecation marking, instead of just printing it, that would make much more sense. I requires a construct roughly like: with warnings.catch_warnings(record=True) as caught_warnings: warnings.simplefilter("always") ... <code raising warning> ... self.assertEqual(len(caught_warnings), 1) self.assertTrue(issubclass(caught_warnings[0].category, DeprecationWarning)) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python-apt in Ubuntu. https://bugs.launchpad.net/bugs/1501805 Title: Sync python-apt 1.0.1 (main) from Debian unstable (main) Status in python-apt package in Ubuntu: In Progress Bug description: Please sync python-apt 1.0.0 (main) from Debian unstable (main) Explanation of the Ubuntu delta and why it can be dropped: * Cherrypick d1d4e0848c5c2963d8411470bcf15a0e8c3538af from git to resolve the testsuite failures with the new pep8 version. -> Obviously uptream * debian/control: Drop apt build-depends to 1.0.9.10ubuntu6 to build in wily; can be dropped after apt >= 1.0.10 is merged. ->Upstream too * To properly conform to PEP 479 and Python 3.5, __iter__() methods should return when exhausted instead of raising StopIterator. This diff can be dropped when Debian bug #792606 is fixed released. -> Upstream too Furthermore, this is somewhat annoying, because the current version in wily has an invalid (non-PEP440) upstream version number, and uploading 1.0.0 will fix that. Otherwise, you get setuptools to complain again, which we do not want. That release also deprecates some code that will be dropped in the next release, so it's kind of important to have that. Changelog entries since current wily version 1.0.0~beta3.1ubuntu1: python-apt (1.0.0) unstable; urgency=medium [ Julian Andres Klode ] * Fix pep8 1.6.2 issues * setup.py: Pass -std=c++11 and -Wno-write-strings to the compiler * Convert from SPtr and SPtrArray to unique_ptr and array * Replace pkgDistUpgrade and friend with APT::Upgrade::Upgrade * AcquireItem: Deprecate mode and introduce active_subprocess * APT 1.1: Fix a typo in a member access. * Deprecate IndexRecords * Document the new additions in 1.0 * doc/source/conf.py: Do not set html_style, broken with recent sphinx * Revert the temporary build-deps on APT 1.0.10 and the new gcc, as they are not needed anymore. [ John R. Lenton ] * Discard stderr when calling system-image-cli (LP: #267935) [ Michael Schaller ] * apt.Cache: Add Cache._rawpkg_to_pkg method to consolidate duplicated code * apt.Version: Compare against package name and version (if available) * apt/package.py: Add target_versions method to [Base]Dependency * Add helpers/filters for installed packages/versions -- Julian Andres Klode <j...@debian.org> Sat, 12 Sep 2015 14:35:27 +0200 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1501805/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp