diff options
| author | Sergey Shepelev <temotor@gmail.com> | 2015-03-05 16:32:40 +0300 |
|---|---|---|
| committer | Sergey Shepelev <temotor@gmail.com> | 2015-03-05 16:32:40 +0300 |
| commit | 8ca2b0d5ff27bf963db78c01bab77e679baa0abc (patch) | |
| tree | 9ff77b27986f9ac31a07bef14caa44ed6b1804af /tests/env_test.py | |
| parent | 84b535becafcdc932ab905061f5fa2fbea35dc74 (diff) | |
| download | eventlet-tm4.tar.gz | |
tests: move some into isolatedtm4
Diffstat (limited to 'tests/env_test.py')
| -rw-r--r-- | tests/env_test.py | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/tests/env_test.py b/tests/env_test.py index f8931c1..4fcc4cc 100644 --- a/tests/env_test.py +++ b/tests/env_test.py @@ -1,26 +1,15 @@ import os -from eventlet.support import six + +import tests from tests.patcher_test import ProcessBase -from tests import skip_with_pyevent -class Socket(ProcessBase): - def test_patched_thread(self): - new_mod = """from eventlet.green import socket -socket.gethostbyname('localhost') -socket.getaddrinfo('localhost', 80) -""" - os.environ['EVENTLET_TPOOL_DNS'] = 'yes' - try: - self.write_to_tempfile("newmod", new_mod) - output, lines = self.launch_subprocess('newmod.py') - self.assertEqual(len(lines), 1, lines) - finally: - del os.environ['EVENTLET_TPOOL_DNS'] +def test_tpool_dns(): + tests.run_isolated('env_tpool_dns.py') class Tpool(ProcessBase): - @skip_with_pyevent + @tests.skip_with_pyevent def test_tpool_size(self): expected = "40" normal = "20" |
