Skip to content

Commit 97c9760

Browse files
committed
TST: fix blocking test on Linux
Avoid clipboard access from implied `canPasteIntoCells` call.
1 parent e2614a6 commit 97c9760

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/diffpy/pdfgui/tests/testphaseconfigurepanel.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from diffpy.pdfgui.gui.phaseconfigurepanel import PhaseConfigurePanel
2525
from diffpy.pdfgui.gui.mainframe import MainFrame
2626
from diffpy.pdfgui.tests.testutils import GUITestCase, datafile, tooltiptext
27-
from diffpy.pdfgui.tests.testutils import clickcell
27+
from diffpy.pdfgui.tests.testutils import clickcell, overrideclipboard
2828

2929
# ----------------------------------------------------------------------------
3030

@@ -75,7 +75,8 @@ def test_onCellRightClick(self):
7575
ga = self.panel.gridAtoms
7676
ga.PopupMenu = lambda menu, pos: None
7777
try:
78-
clickcell(ga, "right", 0, 1)
78+
with overrideclipboard():
79+
clickcell(ga, "right", 0, 1)
7980
finally:
8081
del ga.PopupMenu
8182
self.assertIsNotNone(self.panel.insertID)

0 commit comments

Comments
 (0)