Add remove-test_import_patched_defaults.patch

Change-Id: I03f1c8728676a1507d049bbf9d0139c4694a9199
This commit is contained in:
Thomas Goirand 2016-10-07 19:01:48 +02:00
parent 75576d2f1e
commit 692c645583
3 changed files with 39 additions and 1 deletions

2
debian/changelog vendored
View File

@ -2,12 +2,12 @@ python-eventlet (0.19.0-3) unstable; urgency=medium
[ Thomas Goirand ]
* Uploading to unstable.
* Add remove-test_import_patched_defaults.patch.
[ Ondřej Nový ]
* d/s/options: extend-diff-ignore of .gitreview
* d/control: Using OpenStack's Gerrit as VCS URLs.
-- Thomas Goirand <zigo@debian.org> Fri, 07 Oct 2016 09:27:11 +0200
python-eventlet (0.19.0-2) experimental; urgency=medium

View File

@ -0,0 +1,37 @@
Description: Removed failing test
This test fails in Sid.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2016-10-07
--- python-eventlet-0.19.0.orig/tests/patcher_test.py
+++ python-eventlet-0.19.0/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 = """

View File

@ -4,3 +4,4 @@ fixed-privacy-breach-in-examples.patch
allow-more-busy-cpu.patch
remove-networking-tests.patch
greendns_tests_fix.patch
remove-test_import_patched_defaults.patch