summaryrefslogtreecommitdiff
path: root/testing/cffi0/test_zintegration.py
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-02-16 01:12:51 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-02-16 01:12:51 +0000
commit7d1d0a946598685dd2635b2208d1dfea33190004 (patch)
treeee2d0182d9611b11c7d1e2229bce499e812480f3 /testing/cffi0/test_zintegration.py
parent046d35db06dec26c759b92b7d8de38a979d84c0b (diff)
parent9f0bad686d0e7517a28c3992cd768f9111ff276f (diff)
downloadcffi-7d1d0a946598685dd2635b2208d1dfea33190004.tar.gz
Snap for 8188146 from 9f0bad686d0e7517a28c3992cd768f9111ff276f to tm-frc-media-release
Change-Id: I1ff0857ac8ea829889e5bb214ac7c7f9fe78691f
Diffstat (limited to 'testing/cffi0/test_zintegration.py')
-rw-r--r--testing/cffi0/test_zintegration.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/testing/cffi0/test_zintegration.py b/testing/cffi0/test_zintegration.py
index ce925b8..d56dac2 100644
--- a/testing/cffi0/test_zintegration.py
+++ b/testing/cffi0/test_zintegration.py
@@ -1,13 +1,11 @@
import py, os, sys, shutil
import subprocess
from testing.udir import udir
-import pytest
if sys.platform == 'win32':
- pytestmark = pytest.mark.skip('snippets do not run on win32')
+ py.test.skip('snippets do not run on win32')
if sys.version_info < (2, 7):
- pytestmark = pytest.mark.skip(
- 'fails e.g. on a Debian/Ubuntu which patches virtualenv'
+ py.test.skip('fails e.g. on a Debian/Ubuntu which patches virtualenv'
' in a non-2.6-friendly way')
def create_venv(name):
@@ -77,10 +75,7 @@ def really_run_setup_and_program(dirname, venv_dir_and_paths, python_snippet):
env = os.environ.copy()
env['PYTHONPATH'] = paths
subprocess.check_call((vp, 'setup.py', 'clean'), env=env)
- # there's a setuptools/easy_install bug that causes this to fail when the build/install occur together and
- # we're in the same directory with the build (it tries to look up dependencies for itself on PyPI);
- # subsequent runs will succeed because this test doesn't properly clean up the build- use pip for now.
- subprocess.check_call((vp, '-m', 'pip', 'install', '.'), env=env)
+ subprocess.check_call((vp, 'setup.py', 'install'), env=env)
subprocess.check_call((vp, str(python_f)), env=env)
finally:
os.chdir(olddir)