diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-11-27 08:33:45 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-11-27 08:33:45 -0800 |
commit | 69c6c8108dbbe08b4ab1220f831a1be296670c85 (patch) | |
tree | 4f69e1b859457ed8dba9bde4eb8af972a76d5c83 | |
parent | 02a6bf1ac95861831a303f220c7a41b9bbd398ab (diff) | |
download | portage-69c6c8108dbbe08b4ab1220f831a1be296670c85.tar.gz portage-69c6c8108dbbe08b4ab1220f831a1be296670c85.tar.bz2 portage-69c6c8108dbbe08b4ab1220f831a1be296670c85.zip |
test_portdb_cache: use python -Wi
-rw-r--r-- | pym/portage/tests/dbapi/test_portdb_cache.py | 4 |
1 files 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): |