From 7b688250d152ca0128e3dbb90c5e117230068dc5 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Tue, 3 Aug 2010 00:18:09 +0000 Subject: [PATCH] Fix a couple more tests. --- Lib/bsddb/test/test_recno.py | 2 +- Lib/test/test_urllibnet.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, -- 2.50.0