From 69c6c8108dbbe08b4ab1220f831a1be296670c85 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 27 Nov 2012 08:33:45 -0800 Subject: test_portdb_cache: use python -Wi --- pym/portage/tests/dbapi/test_portdb_cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/tests/dbapi/test_portdb_cache.py b/pym/portage/tests/dbapi/test_portdb_cache.py index 67b961aeb..b9f9fed5a 100644 --- a/pym/portage/tests/dbapi/test_portdb_cache.py +++ b/pym/portage/tests/dbapi/test_portdb_cache.py @@ -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): -- cgit v1.2.3-18-g5258