Skip to content

Remove str() wrapping on Path objects in tests #33

@dannywillems

Description

@dannywillems

Problem

test_client.py lines 63 and 77 use open(str(f)) where f is a Path object. Since Python 3.6, open() accepts Path objects directly.

Solution

  • Replace open(str(f)) with open(f) in test_get_host_success and test_get_host_404

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