Enable strict overflow checking in tests
This commit is contained in:
parent
203b6c354f
commit
c9d42c8bea
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user