Opened 7 years ago

Closed 7 years ago

#8865 closed (fixed) regression test fails

Reported by: pythonhead@… Owned by: nobody
Component: Testing framework Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I'm getting a failure with tests/regressiontests/forms/

FAIL: Doctest: regressiontests.forms.tests.__test__.fields_tests
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-1.0/work/Django-1.0/django/test/", line 2180, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for regressiontests.forms.tests.__test__.fields_tests
  File "/var/tmp/portage/dev-python/django-1.0/work/Django-1.0/tests/regressiontests/forms/", line unknown line number, in fields_tests

File "/var/tmp/portage/dev-python/django-1.0/work/Django-1.0/tests/regressiontests/forms/", line ?, in regressiontests.forms.tests.__test__.fields_tests
Failed example:
    [('.../django/forms/', ''), ('.../django/forms/__init__.pyc', '__init__.pyc'), ('.../django/forms/', ''), ('.../django/forms/fields.pyc', 'fields.pyc'), ('.../django/forms/', ''), ('.../django/forms/forms.pyc', 'forms.pyc'), ('.../django/forms/', ''), ('.../django/forms/models.pyc', 'models.pyc'), ('.../django/forms/', ''), ('.../django/forms/util.pyc', 'util.pyc'), ('.../django/forms/', ''), ('.../django/forms/widgets.pyc', 'widgets.pyc')]
    [('/var/tmp/portage/dev-python/django-1.0/work/Django-1.0/django/forms/', ''), ('/var/tmp/portage/dev-python/django-1.0/work/Django-1.0/django/forms/', ''), ('/var/tmp/portage/dev-python/django-1.0/work/Django-1.0/django/forms/', ''), ('/var/tmp/portage/dev-python/django-1.0/work/Django-1.0/django/forms/', ''), ('/var/tmp/portage/dev-python/django-1.0/work/Django-1.0/django/forms/', ''), ('/var/tmp/portage/dev-python/django-1.0/work/Django-1.0/django/forms/', ''), ('/var/tmp/portage/dev-python/django-1.0/work/Django-1.0/django/forms/', '')]

Ran 525 tests in 1364.088s

FAILED (failures=1)
Destroying test database...

Attachments (2) (1.3 KB) - added by pythonhead@… 7 years ago.
tests/regressiontests/forms/ (1.3 KB) - added by pythonhead 7 years ago.
Alternate patch that doesn't use match=regex

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by pythonhead@…


comment:1 Changed 7 years ago by pythonhead

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

The test expects .pyc files, which may not be generated yet because it's not installed.
My patch uses a regex to ensure it only tests for .py files.

Changed 7 years ago by pythonhead

Alternate patch that doesn't use match=regex

comment:2 Changed 7 years ago by pythonhead

  • Has patch set

comment:3 Changed 7 years ago by kratorius

  • Component changed from Uncategorized to Testing framework

comment:4 Changed 7 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [9065]) Fixed #8865 -- Improved the robustness of some file path tests.
Based on a patch from pythonhead@….

Note: See TracTickets for help on using tickets.
Back to Top