Opened 8 years ago

Closed 8 years ago

Last modified 7 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


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/", 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/", 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/", line 126, in _get_file
    f =, "r", "utf-8")
  File "/usr/lib/python2.6/", line 881, in open
    file =, 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 Changed 8 years ago by Luke Plant

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 Changed 7 years ago by Craig de Stigter

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 :

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