Fix a couple more tests.

This commit is contained in:
Ezio Melotti 2010-08-03 00:18:09 +00:00
parent 6a19b00668
commit 7b688250d1
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,