test_urllib2 is a bit funky

This commit is contained in:
Ryan Williams
2010-01-28 13:11:57 -08:00
parent 06801e2948
commit ee9023c3a9

View File

@@ -8,6 +8,7 @@ patcher.inject('test.test_urllib2',
('urllib2', urllib2))
HandlerTests.test_file = patcher.patch_function(HandlerTests.test_file, ('socket', socket))
HandlerTests.test_cookie_redirect = patcher.patch_function(HandlerTests.test_cookie_redirect, ('urllib2', urllib2))
try:
OpenerDirectorTests.test_badly_named_methods = patcher.patch_function(OpenerDirectorTests.test_badly_named_methods, ('urllib2', urllib2))
except AttributeError: