Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed Jul 6, 2023
1 parent 3f64eb8 commit 5a5283d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spyder/app/tests/test_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -3825,20 +3825,20 @@ def processEvents():

processEvents.called = False
try:
QApplication.processEvents()
QApplication.processEvents = processEvents

# Debug and open both files
with qtbot.waitSignal(shell.executed):
shell.execute('%debug')
assert not processEvents.called
with qtbot.waitSignal(shell.executed):
qtbot.keyClicks(control, '!u')
qtbot.keyClick(control, Qt.Key_Enter)
assert not processEvents.called

# Wait until both files are open
qtbot.waitUntil(
lambda: osp.normpath(str(test_file)) in [
osp.normpath(p) for p in main_window.editor.get_filenames()])
assert not processEvents.called
qtbot.waitUntil(
lambda: str(test_file2) in [
osp.normpath(p) for p in main_window.editor.get_filenames()])
Expand Down

0 comments on commit 5a5283d

Please sign in to comment.