pytest icon indicating copy to clipboard operation
pytest copied to clipboard

Can TerminalReporter support unicode?

Open edsion1107 opened this issue 3 years ago • 1 comments

@pytest.fixture(params=["风行频道"])
def enter_channel():
   ...

def test_fengxing(enter_channel):
  ...

image

I'm trying to use fixture with params. But terminalReporter doesn't seem to support unicode. Any good suggestions over there?

edsion1107 avatar Sep 20 '22 12:09 edsion1107

test ids get escaped due to unicode charactes in them pretty much blowing up lots of things that integrate them in a non-unicode aware way (yay for filesystem encodings and envronment encodings)

currently there is nobody working on fixing this

there is a flag for allowing this and forfeiting all support for those reasons and a older issue around that as well

RonnyPfannschmidt avatar Sep 20 '22 14:09 RonnyPfannschmidt

Closing because of https://github.com/pytest-dev/pytest/issues/9037 😢

Zac-HD avatar Sep 27 '22 05:09 Zac-HD