The traceback use module name instead of filename.
The rest of the test is still on fire for various other reasons. However that
specific output mismatch is now fixed.
| hg-reviewers |
The traceback use module name instead of filename.
The rest of the test is still on fire for various other reasons. However that
specific output mismatch is now fixed.
| Automatic diff as part of commit; lint not applicable. |
| Automatic diff as part of commit; unit tests not applicable. |
| Path | Packages | |||
|---|---|---|---|---|
| M | tests/test-extension.t (3 lines) |
| Status | Author | Revision | |
|---|---|---|---|
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute |
| $ cat > $TESTTMP/baduisetup.py <<EOF | $ cat > $TESTTMP/baduisetup.py <<EOF | ||||
| > def uisetup(ui): | > def uisetup(ui): | ||||
| > 1 / 0 | > 1 / 0 | ||||
| > EOF | > EOF | ||||
| Even though the extension fails during uisetup, hg is still basically usable: | Even though the extension fails during uisetup, hg is still basically usable: | ||||
| $ hg --config extensions.baduisetup=$TESTTMP/baduisetup.py version | $ hg --config extensions.baduisetup=$TESTTMP/baduisetup.py version | ||||
| Traceback (most recent call last): | Traceback (most recent call last): | ||||
| File "*/mercurial/extensions.py", line *, in _runuisetup (glob) | File "*/mercurial/extensions.py", line *, in _runuisetup (glob) (no-pyoxidizer !) | ||||
| File "mercurial.extensions", line *, in _runuisetup (glob) (pyoxidizer !) | |||||
| uisetup(ui) | uisetup(ui) | ||||
| File "$TESTTMP/baduisetup.py", line 2, in uisetup | File "$TESTTMP/baduisetup.py", line 2, in uisetup | ||||
| 1 / 0 | 1 / 0 | ||||
| ZeroDivisionError: * by zero (glob) | ZeroDivisionError: * by zero (glob) | ||||
| *** failed to set up extension baduisetup: * by zero (glob) | *** failed to set up extension baduisetup: * by zero (glob) | ||||
| Mercurial Distributed SCM (version *) (glob) | Mercurial Distributed SCM (version *) (glob) | ||||
| (see https://mercurial-scm.org for more information) | (see https://mercurial-scm.org for more information) | ||||