diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-28 19:57:03 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-28 19:57:03 (GMT) |
commit | 55b61d21d8e8409fbb6ca23421f8a3a5c23f5513 (patch) | |
tree | aa6d2f9c10dbda56efe1be4ba1350c32e546e9bc /Lib/test/test_timeout.py | |
parent | 6e2d1c7ab83eef723176861ac2bc0732f10ba1ca (diff) | |
download | cpython-55b61d21d8e8409fbb6ca23421f8a3a5c23f5513.zip cpython-55b61d21d8e8409fbb6ca23421f8a3a5c23f5513.tar.gz cpython-55b61d21d8e8409fbb6ca23421f8a3a5c23f5513.tar.bz2 |
Fix SF bugs #692951 and 692988, test_timeout.py needs 'network' resource
require -u network to run test_timeout since
it fails when not connected to a network.
Diffstat (limited to 'Lib/test/test_timeout.py')
-rw-r--r-- | Lib/test/test_timeout.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_timeout.py b/Lib/test/test_timeout.py index 5949e51..07c5372 100644 --- a/Lib/test/test_timeout.py +++ b/Lib/test/test_timeout.py @@ -3,6 +3,9 @@ import unittest from test import test_support +# This requires the 'network' resource as given on the regrtest command line. +skip_expected = not test_support.is_resource_enabled('network') + import time import socket @@ -182,6 +185,8 @@ class TimeoutTestCase(unittest.TestCase): def test_main(): + test_support.requires('network') + suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(CreationTestCase)) suite.addTest(unittest.makeSuite(TimeoutTestCase)) |