Django tests failing for development env

25 views
Skip to first unread message

premdjango

unread,
Jun 28, 2016, 7:49:43 PM6/28/16
to Django users
I want to contribute to Django community, so I was trying to setup my env using the following doc - 



I ran the tests and get the following output - 

======================================================================

FAIL: test_old_style_storage (file_storage.tests.FileFieldStorageTests)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/Users/prem/Documents/django-contribute/django/tests/file_storage/tests.py", line 566, in test_old_style_storage

    self.assertEqual(len(warns), 2)

AssertionError: 4 != 2


======================================================================

FAIL: test_migrate_legacy_router (multiple_database.tests.RouterTestCase)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/Users/prem/Documents/django-contribute/django/tests/multiple_database/tests.py", line 954, in test_migrate_legacy_router

    self.assertEqual(recorded, [])

AssertionError: Lists differ: [<warnings.WarningMessage object at 0x1130bdda0>] != []


First list contains 1 additional elements.

First extra element 0:

{message : DeprecationWarning('inspect.getargspec() is deprecated, use inspect.signature() instead',), category : 'DeprecationWarning', filename : '/Users/premDocuments/django-contribute/django/django/db/utils.py', lineno : 293, line : None}


- [<warnings.WarningMessage object at 0x1130bdda0>]

+ []


======================================================================

FAIL: test_if_tag_eq_deprecated (template_tests.syntax_tests.test_if.IfTagTests)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/Users/prem/Documents/django-contribute/django/django/test/utils.py", line 182, in inner

    return test_func(*args, **kwargs)

  File "/Users/prem/Documents/django-contribute/django/tests/template_tests/utils.py", line 62, in inner

    func(self)

  File "/Users/prem/Documents/django-contribute/django/tests/template_tests/syntax_tests/test_if.py", line 537, in test_if_tag_eq_deprecated

    self.assertEqual(len(warns), 1)

AssertionError: 3 != 1


======================================================================

FAIL: test_only_new_files (utils_tests.test_autoreload.TestFilenameGenerator)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/Users/prem/Documents/django-contribute/django/tests/utils_tests/test_autoreload.py", line 87, in test_only_new_files

    self.assertEqual(len(filenames2), 1)

AssertionError: 0 != 1


----------------------------------------------------------------------

Ran 9637 tests in 202.521s


FAILED (failures=4, skipped=856, expected failures=6)

Destroying test database for alias 'default'...

Destroying test database for alias 'other'.



Not sure, if the errors are valid or not. One thing I see is expected failures =6



Tim Graham

unread,
Jun 28, 2016, 9:02:30 PM6/28/16
to Django users
If you're running the tests at the checkout point mentioned in the tutorial note, "If you’re using Python 3.5+, there will be a couple failures related to deprecation warnings that you can ignore. These failures have since been fixed in Django."
Reply all
Reply to author
Forward
0 new messages