From 6e910f496636bd5fe95ee37fa8209e5014c24a34 Mon Sep 17 00:00:00 2001 From: Rick van Hattem Date: Fri, 15 Feb 2019 03:33:31 +0100 Subject: [PATCH] debugging travis --- tests/test_ascii.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_ascii.py b/tests/test_ascii.py index b06b1ab..0cb62c1 100644 --- a/tests/test_ascii.py +++ b/tests/test_ascii.py @@ -62,12 +62,10 @@ def test_use_with_qt_with_custom_locale_decimal_delimeter(speedups): if not speedups: pytest.skip('Only makes sense with speedups') - if (3, 6) == sys.version_info[:2] and 'TRAVIS' in os.environ: + venv = os.environ.get('VIRTUAL_ENV', '') + if (3, 6) == sys.version_info[:2] and venv.startswith('/home/travis/'): pytest.skip('PySide2/PyQt5 tests are broken on Travis Python 3.6') - import pprint - pprint.pprint(os.environ) - try: from PySide2 import QtWidgets except ImportError: