pytest-dev / py

Python development support library (note: maintenance only)
MIT License
67 stars 106 forks source link

i18n: more accurate line width estimate...possible? #196

Closed wimglenn closed 6 years ago

wimglenn commented 6 years ago

For example taking into account full width asian characters, combining accents in latin characters, etc. - it's not entirely trivial because Python module filenames can for example have accents.

This is going to be extremely difficult to handle correctly 100% of the time, without a big performance hit, and this is just a start (plus some testing) for trying to provide a number that may hopefully be more reliable than the string length.

pytest without this stuff:

short_misaligned

pytest with this stuff:

short
wimglenn commented 6 years ago

@nicoddemus any idea what's going on in the appveyor build failure? doesn't look like any module I've touched?

nicoddemus commented 6 years ago

Hmmm seems like a flaky test, let me trigger the build again to confirm