Test failing in windows 11 using master branch
- Dominant language
- Python
- Stars
- 7.5k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
When running setup.py test on my Windows 11 Pro computer (version 22H2) in the master branch of pipreqs, I got the following error:
```
======================================================================
FAIL: test_init_local_only (tests.test_pipreqs.TestPipreqs.test_init_local_only)
Test that items listed in requirements.text are the same
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\users\fernando\desktop\universidade\labxp\pipreqs\tests\test_pipreqs.py", line 141, in test_init_local_only
self.assertTrue(item[0].lower() in self.local)
AssertionError: False is not true`
----------------------------------------------------------------------
Ran 18 tests in 137.532s
FAILED (failures=1)
Test failed:
error: Test failed:
```
I basically followed the "_Get Started_" section of the CONTRIBUTING page, but I installed virtualenvwrapper-win 1.2.7 instead of the Linux version.
Contributor guide
Research direction
Reproduce the failure with `setup.py test` on Windows 11, then inspect `tests/test_pipreqs.py` around `test_init_local_only` and line 141. Determine why the expected requirements entries differ on Windows; done means the test passes without regressing the existing suite.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- operating-systems, testing-qa, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100