[Python-modules-commits] [python-eventlet] 07/19: Removed failing test

Thomas Goirand zigo at moszumanska.debian.org
Tue Nov 14 21:39:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

zigo pushed a commit to branch master
in repository python-eventlet.

commit b51e359bd18a8f625c50becd55fa455c183c6f94
Author: Thomas Goirand <zigo at debian.org>
Date:   Fri Aug 4 21:47:20 2017 +0200

    Removed failing test
    
     This test fails in Sid.
    Forwarded: no
    Last-Update: 2016-10-07
---
 tests/patcher_test.py | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/tests/patcher_test.py b/tests/patcher_test.py
index fb9c19b..f1c8c34 100644
--- a/tests/patcher_test.py
+++ b/tests/patcher_test.py
@@ -82,28 +82,6 @@ class ImportPatched(ProcessBase):
         assert 'eventlet.green.urllib' in lines[2], repr(output)
         assert 'eventlet.green.httplib' not in lines[2], repr(output)
 
-    def test_import_patched_defaults(self):
-        self.write_to_tempfile("base", """
-import socket
-try:
-    import urllib.request as urllib
-except ImportError:
-    import urllib
-print("base {0} {1}".format(socket, urllib))""")
-
-        new_mod = """
-from eventlet import patcher
-base = patcher.import_patched('base')
-print("newmod {0} {1} {2}".format(base, base.socket, base.urllib.socket.socket))
-"""
-        self.write_to_tempfile("newmod", new_mod)
-        output, lines = self.launch_subprocess('newmod.py')
-        assert lines[0].startswith('base'), repr(output)
-        assert lines[1].startswith('newmod'), repr(output)
-        assert 'eventlet.green.socket' in lines[1], repr(output)
-        assert 'GreenSocket' in lines[1], repr(output)
-
-
 class MonkeyPatch(ProcessBase):
     def test_patched_modules(self):
         new_mod = """

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-eventlet.git



More information about the Python-modules-commits mailing list