This is an archive of the discontinued Mercurial Phabricator instance.

py3: conditionalize test-flagprocessor.t on Python 3.8
ClosedPublic

Authored by indygreg on Jan 18 2020, 4:18 PM.

Details

Summary

For reasons I don't understand, Python 3.8 is outputting a different
lint in the traceback than prior Pythons.

The lines in question are:

flagutil.addflagprocessor(
    REVIDX_NOOP, (noopdonothingread, noopdonothing, validatehash,)
)

Python <3.8 prints the 2nd line but 3.8 the first line. Perhaps Python
changed its traceback logic to always print the first line of a
multiple line expression?

Whatever the case, with this change, the test now passes on
Python 3.8.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage