Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jun 13, 2022
1 parent e67ee71 commit 8f5443a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ def test_examples(fname, monkeypatch):
if "values_dialog" in str(fname):
from magicgui.backends._qtpy.widgets import QtW # type: ignore

monkeypatch.setattr(QtW.QDialog, "exec", lambda s: None)
monkeypatch.setattr(QtW.QDialog, "exec_", lambda s: None)
try:
monkeypatch.setattr(QtW.QDialog, "exec", lambda s: None)
except AttributeError:
monkeypatch.setattr(QtW.QDialog, "exec_", lambda s: None)
app = use_app()
app.start_timer(50 if "table" in str(fname) else 5, app.quit)
try:
Expand Down

0 comments on commit 8f5443a

Please sign in to comment.