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

tests: ManyFieldsForm: Module 'django.forms' has no 'IPAddressField' member #62

Closed
danstender opened this issue Jan 27, 2016 · 1 comment

Comments

@danstender
Copy link

Hi, I've got that here with 0.7.1:

$ PYTHONPATH=. python test/test_func.py 
..................F
======================================================================
FAIL: test_functionality (pylint.testutils.LintTC)
file test of input file "func_noerror_form_fields" (LintTC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pylint/testutils.py", line 323, in test_functionality
    self._test(tocheck)
  File "/usr/lib/python2.7/dist-packages/pylint/testutils.py", line 298, in _test
    self._check_result(self.linter.reporter.finalize())
  File "/usr/lib/python2.7/dist-packages/pylint/testutils.py", line 282, in _check_result
    got.strip()+'\n')
AssertionError: '\n' != "E: 24:ManyFieldsForm: Module 'django.forms' has no 'IPAddressField' member\n"
- 
+ E: 24:ManyFieldsForm: Module 'django.forms' has no 'IPAddressField' member
----------------------------------------------------------------------
Ran 19 tests in 2.952s

The build Django is 0.9.1 (IPAdressFiled dropped?).

Thanks,
DS

@carlio
Copy link
Collaborator

carlio commented Jun 16, 2016

Looks like the IPAddressField moved to GenericIPAddressField some time ago. I fixed this as part of e044f83 by making it use whichever happens to be available. Perhaps not the most elegant solution but it works!

@carlio carlio closed this as completed Jun 16, 2016
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

No branches or pull requests

2 participants