bndr / pipreqs

pipreqs - Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.
Apache License 2.0
6.38k stars 388 forks source link

Test failing in windows 11 using master branch #388

Open Fernando-crz opened 1 year ago

Fernando-crz commented 1 year ago

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: <unittest.runner.TextTestResult run=18 errors=0 failures=1>
error: Test failed: <unittest.runner.TextTestResult run=18 errors=0 failures=1>

I basically followed the "Get Started" section of the CONTRIBUTING page, but I installed virtualenvwrapper-win 1.2.7 instead of the Linux version.