mirror of https://github.com/python/cpython
Fix a couple more tests.
This commit is contained in:
parent
6a19b00668
commit
7b688250d1
|
@ -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,
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue