Skip to content

Regression in v3.2.0 - when using null bytes in parameter strings. #2669

Closed
@samuelfekete

Description

@samuelfekete

This error only happens when using the latest version: 3.2.0

When using a parameter string that contains a null character, for example:

@pytest.mark.parametrize(
    'display_name',
    ('null-byte-\0.txt', 'forward/slash', r'back\slash')
)

The following error is raised:

    def __setitem__(self, key, item):
>       putenv(key, item)
E       TypeError: must be string without null bytes, not str

.tox/py27/lib/python2.7/os.py:473: TypeError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions