Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct test failures when initializing ModuleFinder #833

Merged
merged 1 commit into from Dec 16, 2020

Conversation

felixonmars
Copy link
Contributor

Fixes errors like the following one:

======================================================================
ERROR: test_finder.test_ScanCode
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/python-cx_freeze/src/cx_Freeze-6.4/test/test_finder.py", line 13, in test_ScanCode
    mf = ModuleFinder()
  File "/build/python-cx_freeze/src/cx_Freeze-6.4/cx_Freeze/finder.py", line 164, in __init__
    self._modules = dict.fromkeys(
TypeError: 'NoneType' object is not iterable

Fixes errors like the following one:

```
======================================================================
ERROR: test_finder.test_ScanCode
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/python-cx_freeze/src/cx_Freeze-6.4/test/test_finder.py", line 13, in test_ScanCode
    mf = ModuleFinder()
  File "/build/python-cx_freeze/src/cx_Freeze-6.4/cx_Freeze/finder.py", line 164, in __init__
    self._modules = dict.fromkeys(
TypeError: 'NoneType' object is not iterable
```
@marcelotduarte marcelotduarte merged commit e23e7e7 into marcelotduarte:master Dec 16, 2020
@marcelotduarte
Copy link
Owner

Thanks!

@felixonmars felixonmars deleted the patch-1 branch December 16, 2020 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants