Enable strict overflow checking in tests

This commit is contained in:
Florian Bruhin 2017-11-21 14:09:20 +01:00
parent 203b6c354f
commit c9d42c8bea

View File

@ -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):