From: Ezio Melotti Date: Tue, 3 Aug 2010 00:18:09 +0000 (+0000) Subject: Fix a couple more tests. X-Git-Tag: v2.6.6rc1~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b688250d152ca0128e3dbb90c5e117230068dc5;p=python Fix a couple more tests. --- diff --git a/Lib/bsddb/test/test_recno.py b/Lib/bsddb/test/test_recno.py index ba1b8f0145..d332497388 100644 --- a/Lib/bsddb/test/test_recno.py +++ b/Lib/bsddb/test/test_recno.py @@ -39,7 +39,7 @@ class SimpleRecnoTestCase(unittest.TestCase): for x in letters: recno = d.append(x * 60) self.assertTrue(isinstance(recno, int)) - self.assertGreaterEqual(recno, 1) + self.assertTrue(recno >= 1) if verbose: print recno, diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py index d7ba5d9a80..1e9cf0d786 100644 --- a/Lib/test/test_urllibnet.py +++ b/Lib/test/test_urllibnet.py @@ -193,7 +193,7 @@ class urlretrieveNetworkTests(unittest.TestCase): def test_main(): test_support.requires('network') - with test_support.check_py3k_warnings( + with test_support._check_py3k_warnings( ("urllib.urlopen.. has been removed", DeprecationWarning)): test_support.run_unittest(URLTimeoutTest, urlopenNetworkTests,