diff options
author | Sergey Shepelev <temotor@gmail.com> | 2020-08-19 12:28:02 +0300 |
---|---|---|
committer | Sergey Shepelev <temotor@gmail.com> | 2020-08-19 12:28:12 +0300 |
commit | 3a01b33250a6b0504d506b79e563e7445b0ecc77 (patch) | |
tree | 9af5b5194b92c3ba56ed7420a6b3d5953040ded6 | |
parent | 3e5baa8feac8d8f64ae42dad82f290e06604e763 (diff) | |
download | eventlet-3a01b33250a6b0504d506b79e563e7445b0ecc77.tar.gz |
tests checking output were broken by Python 2 end of support warningpy27-warning
Previous behavior to ignore DeprecationWarning is now default in py2.7
-rw-r--r-- | tests/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/__init__.py b/tests/__init__.py index d3bbd8e..82cd247 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -323,8 +323,8 @@ def get_database_auth(): def run_python(path, env=None, args=None, timeout=None, pythonpath_extend=None, expect_pass=False): new_argv = [sys.executable] - if sys.version_info[:2] <= (2, 6): - new_argv += ['-W', 'ignore::DeprecationWarning'] + if sys.version_info[:2] <= (2, 7): + new_argv += ['-W', 'ignore:Python 2 is no longer supported'] new_env = os.environ.copy() new_env.setdefault('eventlet_test_in_progress', 'yes') src_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |