Skip to content

Issue with lower case drive names when running tests on Windows #12880

Open
@edreamleo

Description

@edreamleo

Documentation

I am attempting to run unit tests as preparation to submitting a PR. There are other problems on Linux, but this issue applies to Windows.

The setup instructions in CONTRIBUTING.md do not work on Windows. Presumably as a result, a large number of unit tests fail. The following instructions would seem to need modification:

1: source venv/bin/activate

Googling probably provides the workaround: define activate.cmd as venv\Scripts\activate, and similarly for deactivate. Ah. Just now I see just now that the venv docs discuss the source command.

  1. hash -r

I have no idea what this means. Googling does not help and "hash" does not appear in venv.html. After:

python3 -m pip install -r test-requirements.txt
python3 -m pip install -e .

which hash (Linux) and where hash (Windows) yield nothing (either before and after activate).

Some file searching finds ...mypy\venv\Lib\site-packages\pip\_internal\commands\hash.py, but various invocations of pip hash, such as pip hash -r and pip hash -r . do not work.

Any help would be appreciated. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions