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: