Skip to content

Regression: UnicodeEncodeError with non-ascii characters in parametrized tests #1086

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
sloria opened this issue Sep 29, 2015 · 3 comments
Closed
Assignees
Labels
type: bug problem that needs to be addressed
Milestone

Comments

@sloria
Copy link

sloria commented Sep 29, 2015

On pytest 2.8.1 on Python 2.7.10, a UnicodeEncodeError is raised .

Code to reproduce:

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest

@pytest.mark.parametrize('s',
[
    'josé@blah.com',
    'δοκ.ιμή@παράδειγμα.δοκιμή',
])
def test_non_ascii(s):
    assert bool(s)

This did not occur with pytest 2.8.0

@nicoddemus
Copy link
Member

Thanks for the report! I will take a look as soon as possible.

@nicoddemus nicoddemus added the type: bug problem that needs to be addressed label Sep 29, 2015
@nicoddemus nicoddemus self-assigned this Sep 29, 2015
@nicoddemus nicoddemus added this to the 2.8.2 milestone Sep 29, 2015
@nicoddemus
Copy link
Member

Hmm closing as duplicate of #1085, both reported nearly at the same time. 😄

@nicoddemus
Copy link
Member

PR open at #1092

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug problem that needs to be addressed
Projects
None yet
Development

No branches or pull requests

2 participants