Skip to content

silx view: Added test of hdf5 file locking behavior#4599

Open
t20100 wants to merge 2 commits into
mainfrom
add-silx-view-file-locking-test
Open

silx view: Added test of hdf5 file locking behavior#4599
t20100 wants to merge 2 commits into
mainfrom
add-silx-view-file-locking-test

Conversation

@t20100
Copy link
Copy Markdown
Member

@t20100 t20100 commented May 18, 2026

PR summary

This PR adds a non-regression test of silx view's hdf5 file locking behavior.

Follow-up of #4595
Closes #4594

AI Disclosure

  • No AI used

@t20100 t20100 added this to the Next release milestone May 18, 2026
@t20100 t20100 requested a review from loichuder May 18, 2026 13:31
Comment thread src/silx/app/view/test/test_view.py Outdated
def isViewerReady():
for w in app.topLevelWidgets():
if isinstance(w, qt.QMainWindow) and w.isVisible():
print("ready", flush=True)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flush=True needed to flush stdout, otherwise it is buffered



def testSilxViewHdf5FileLockingEnabled(data_h5, silxViewSubprocess):
"""Test that silx view --hdf5-file-locking locks hdf5 files when opening them"""
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also test with locking to make sure that the tests are effectively covering the locking issue ;)

@t20100 t20100 force-pushed the add-silx-view-file-locking-test branch from e56d01e to efd8cd0 Compare May 18, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

silx view: No longer disable hdf5 file locking

1 participant