From c9d42c8bea47cf344bd98f85994d693d42d89314 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 21 Nov 2017 14:09:20 +0100 Subject: [PATCH] Enable strict overflow checking in tests --- tests/conftest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 0c28ed17b..9c52f6800 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -25,6 +25,7 @@ import os import sys import warnings +import sip import pytest import hypothesis from PyQt5.QtCore import PYQT_VERSION @@ -175,6 +176,12 @@ def pytest_configure(config): if config.webengine: import PyQt5.QtWebEngineWidgets + try: + # Added in sip 4.19.4 + sip.enableoverflowchecking(True) + except AttributeError: + pass + @pytest.fixture(scope='session', autouse=True) def check_display(request):