Skip to content

path.write fails bad with unicode #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RonnyPfannschmidt opened this issue Jan 18, 2017 · 1 comment
Closed

path.write fails bad with unicode #107

RonnyPfannschmidt opened this issue Jan 18, 2017 · 1 comment

Comments

@RonnyPfannschmidt
Copy link
Member

this a followup to pytest-dev/pytest#605

# -*- coding: utf-8 -*-

def test_1(tmpdir):
    tmpdir.join('foo').write(u'æ')


def test_2(tmpdir):
    tmpdir.join('foo').write(u'æ'.encode('u8'))


def test_3(tmpdir):
    tmpdir.join('foo').write(u'æ'.encode('l1'))

all fail atm with messy errors, and i believe all should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants