Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#15677 closed Uncategorized (invalid)

Release tarball missing "backup~" test file

Reported by: Chris Lamb Owned by: nobody
Component: Uncategorized Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The release tarball doesn't have the ./tests/regressiontests/staticfiles_tests/apps/test/static/test/backup~ file so the test_no_common_ignore_patterns test fails:

======================================================================
ERROR: test_no_common_ignore_patterns (regressiontests.staticfiles_tests.tests.TestBuildStaticExcludeNoDefaultIgnore)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/bp-build/Django-1.3/tests/regressiontests/staticfiles_tests/tests.py", line 244, in test_no_common_ignore_patterns
    self.assertFileContains('test/backup~', 'should be ignored')
  File "/tmp/bp-build/Django-1.3/tests/regressiontests/staticfiles_tests/tests.py", line 90, in assertFileContains
    self.assertTrue(text in self._get_file(smart_unicode(filepath)),
  File "/tmp/bp-build/Django-1.3/tests/regressiontests/staticfiles_tests/tests.py", line 126, in _get_file
    f = codecs.open(filepath, "r", "utf-8")
  File "/usr/lib/python2.6/codecs.py", line 881, in open
    file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 2] No such file or directory: u'/tmp/tmpgPPtOe/test/backup~'

Debian run the testsuite when building the package.

Change History (2)

comment:1 by Luke Plant, 14 years ago

Resolution: invalid
Status: newclosed

The Django 1.3 tarball certainly contains that file. Running the staticfiles_tests gives 100% positive result, and deleting that file gives the result you describe. So something else must have deleted that file on your system.

comment:2 by Craig de Stigter, 13 years ago

Easy pickings: unset
Severity: Normal
Type: Uncategorized
UI/UX: unset

I stumbled across this same problem trying to backport django 1.3.1 to ubuntu lucid. For future reference the solution is to add this to your debian/rules :

override_dh_clean:
        # backup~ is used in tests
        dh_clean -Xbackup~
Note: See TracTickets for help on using tickets.
Back to Top