test_portdb_cache: use python -Wi
authorZac Medico <zmedico@gentoo.org>
Tue, 27 Nov 2012 16:33:45 +0000 (08:33 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 27 Nov 2012 16:33:45 +0000 (08:33 -0800)
pym/portage/tests/dbapi/test_portdb_cache.py

index 67b961aeb90afd64a1571907034beaaadabea5b0..b9f9fed5a15708557b6ec8359af68259580f7a50 100644 (file)
@@ -87,12 +87,12 @@ class PortdbCacheTestCase(TestCase):
                        (BASH_BINARY, "-c", "echo %s > %s" %
                                tuple(map(portage._shell_quote,
                                ("cache-formats = pms md5-dict", layout_conf_path,)))),
-                       (portage_python, "-c") + (textwrap.dedent("""
+                       (portage_python, "-Wi", "-c") + (textwrap.dedent("""
                                import os, sys, portage
                                if portage.portdb.porttree_root not in portage.portdb._pregen_auxdb:
                                        sys.exit(1)
                        """),),
-                       (portage_python, "-c") + (textwrap.dedent("""
+                       (portage_python, "-Wi", "-c") + (textwrap.dedent("""
                                import os, sys, portage
                                from portage.cache.metadata import database as pms_database
                                if not isinstance(portage.portdb._pregen_auxdb[portage.portdb.porttree_root], pms_database):