This is an archive of the discontinued Mercurial Phabricator instance.

tests: fix various test-check-module-imports.t violations
ClosedPublic

Authored by durin42 on Mar 3 2018, 9:37 AM.

Details

Summary

Somehow these are only caught when running the test under Python 3.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

durin42 created this revision.Mar 3 2018, 9:37 AM
pulkit added a subscriber: pulkit.Mar 3 2018, 10:52 AM
pulkit added inline comments.
tests/test-i18n.t
58

I am not sure why we need this but according to rest of the patch, these couple of imports should be in new lines.

durin42 added inline comments.Mar 3 2018, 1:02 PM
tests/test-i18n.t
58

The linter doesn't enforce that, so I didn't bother. Two imports felt short enough as to not explode it out into multiple lines.

The import checker does require that importing encoding or registrar has to come after importing _ from i18n.

pulkit accepted this revision.Mar 3 2018, 1:09 PM
This revision was automatically updated to reflect the committed changes.