From fe1194b25031f40e51d1a82352bb7d79bcafe912 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 3 Jan 2013 20:35:40 -0800 Subject: test_paren_reduce: disable deprecation warning --- pym/portage/tests/dep/test_paren_reduce.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'pym/portage/tests') diff --git a/pym/portage/tests/dep/test_paren_reduce.py b/pym/portage/tests/dep/test_paren_reduce.py index 9a147a02e..1dfa64853 100644 --- a/pym/portage/tests/dep/test_paren_reduce.py +++ b/pym/portage/tests/dep/test_paren_reduce.py @@ -1,4 +1,4 @@ -# Copyright 2010-2011 Gentoo Foundation +# Copyright 2010-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from portage.tests import TestCase @@ -57,10 +57,13 @@ class TestParenReduce(TestCase): ) for dep_str, expected_result in test_cases: - self.assertEqual(paren_reduce(dep_str), expected_result, + self.assertEqual(paren_reduce(dep_str, _deprecation_warn=False), + expected_result, "input: '%s' result: %s != %s" % (dep_str, - paren_reduce(dep_str), expected_result)) + paren_reduce(dep_str, _deprecation_warn=False), + expected_result)) for dep_str in test_cases_xfail: self.assertRaisesMsg(dep_str, - InvalidDependString, paren_reduce, dep_str) + InvalidDependString, paren_reduce, dep_str, + _deprecation_warn=False) -- cgit v1.2.3-1-g7c22