Skip to content

fix ignoring of URLError in test_copy_ec_from_commit#5077

Merged
boegel merged 2 commits intoeasybuilders:developfrom
Flamefire:urlerror-test
Dec 18, 2025
Merged

fix ignoring of URLError in test_copy_ec_from_commit#5077
boegel merged 2 commits intoeasybuilders:developfrom
Flamefire:urlerror-test

Conversation

@Flamefire
Copy link
Contributor

@Flamefire Flamefire commented Dec 18, 2025

When the exception is thrown and ignored stdout is unassigned so the following tests cannot be done.

Fix regression from #4468.

See https://github.com/easybuilders/easybuild-framework/actions/runs/20333704730/job/58414942098?pr=5045

UnboundLocalError: local variable 'stdout' referenced before assignment

Note that CI will still fail with

ERROR: Found printed messages in output of test suite

And similar:

................................................................................................................................................................................................................Skipping online test for det_file_size (working offline)

cc @boegel

When the exception is thrown and ignored `stdout` is unassigned so the
following tests cannot be done.
C&P that code is not necessary when `tmpdir` isn't used or the catch is
at the end of a test.
@boegel boegel changed the title Fix URLError handling in tests fix ignoring of URLError in test_copy_ec_from_commit Dec 18, 2025
Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

@boegel boegel added this to the next release (5.2.0) milestone Dec 18, 2025
@boegel boegel merged commit 487a086 into easybuilders:develop Dec 18, 2025
54 of 56 checks passed
@Flamefire Flamefire deleted the urlerror-test branch December 19, 2025 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants