Commit a044540d authored by Kevin Modzelewski's avatar Kevin Modzelewski

Disable flaky pyopenssl test

parent 44cdb668
...@@ -10,12 +10,18 @@ PYOPENSSL_DIR = os.path.abspath(os.path.join(ENV_NAME, "site-packages", "OpenSSL ...@@ -10,12 +10,18 @@ PYOPENSSL_DIR = os.path.abspath(os.path.join(ENV_NAME, "site-packages", "OpenSSL
packages = ["nose==1.3.7", "pycparser==2.13", "cryptography==1.0.1", "pyopenssl==0.15.1", "pyasn1==0.1.7", "idna==2.0", "six==1.9.0", "enum34==1.0.4", "ipaddress==1.0.14", "cffi==1.1.0"] packages = ["nose==1.3.7", "pycparser==2.13", "cryptography==1.0.1", "pyopenssl==0.15.1", "pyasn1==0.1.7", "idna==2.0", "six==1.9.0", "enum34==1.0.4", "ipaddress==1.0.14", "cffi==1.1.0"]
create_virtenv(ENV_NAME, packages, force_create = True) create_virtenv(ENV_NAME, packages, force_create = True)
import subprocess
# This particular test is bad; it depends on certain implementation details of the openssl library # This particular test is bad; it depends on certain implementation details of the openssl library
# it's linked against. It fails in cpython and for other people as well # it's linked against. It fails in cpython and for other people as well
# https://www.mail-archive.com/ports@openbsd.org/msg52063.html # https://www.mail-archive.com/ports@openbsd.org/msg52063.html
import subprocess
subprocess.check_call(["sed", "-i", 's/\\(def test_digest.*\\)/\\1\\n return/', subprocess.check_call(["sed", "-i", 's/\\(def test_digest.*\\)/\\1\\n return/',
os.path.join(PYOPENSSL_DIR, "test", "test_crypto.py")]) os.path.join(PYOPENSSL_DIR, "test", "test_crypto.py")])
# This particular test is bad; it fails if run close to a second-boundary
# https://github.com/pyca/pyopenssl/issues/266
subprocess.check_call(["sed", "-i", 's/\\(def test_export_test.*\\)/\\1\\n return/',
os.path.join(PYOPENSSL_DIR, "test", "test_crypto.py")])
expected = [{'ran': 438}] expected = [{'ran': 438}]
run_test([NOSETESTS_EXE], cwd=PYOPENSSL_DIR, expected=expected) run_test([NOSETESTS_EXE], cwd=PYOPENSSL_DIR, expected=expected)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment