diff options
Diffstat (limited to 'dev-python/nose/files/nose-tests-nonetwork.patch')
-rw-r--r-- | dev-python/nose/files/nose-tests-nonetwork.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/nose/files/nose-tests-nonetwork.patch b/dev-python/nose/files/nose-tests-nonetwork.patch new file mode 100644 index 000000000000..d853db93ce65 --- /dev/null +++ b/dev-python/nose/files/nose-tests-nonetwork.patch @@ -0,0 +1,34 @@ +--- unit_tests/test_twisted.py.orig 2007-08-11 19:09:41.000000000 +0300 ++++ unit_tests/test_twisted.py 2007-09-14 11:30:40.000000000 +0300 +@@ -13,31 +13,6 @@ + class CustomError(Exception): + pass + +-# FIXME move all dns-using tests to functional +- +-# Should succeed unless google is down +-#@deferred +-def test_resolve(): +- return reactor.resolve("www.google.com") +-test_resolve = deferred()(test_resolve) +- +-# Raises TypeError because the function does not return a Deferred +-#@raises(TypeError) +-#@deferred() +-def test_raises_bad_return(): +- print reactor +- reactor.resolve("nose.python-hosting.com") +-test_raises_bad_return = raises(TypeError)(deferred()(test_raises_bad_return)) +- +-# Check we propagate twisted Failures as Exceptions +-# (XXX this test might take some time: find something better?) +-#@raises(DNSLookupError) +-#@deferred() +-def test_raises_twisted_error(): +- return reactor.resolve("x.y.z") +-test_raises_twisted_error = raises(DNSLookupError)( +- deferred()(test_raises_twisted_error)) +- + # Check we detect Exceptions inside the callback chain + #@raises(CustomError) + #@deferred(timeout=1.0) |