1. fiji
  2. django-3k
  3. Issues
Issue #90 resolved

Fix issues with admin_scripts tests in regressiontests

created an issue

There are 66 failing tests with the same reason for failure. They expect an empty stream and get errors about failed imports.

"AssertionError: Stream should be empty: actually contains 'b'Traceback (most recent call last):\r\n File "./manage.py", line 4, in <module>\r\n from . import settings # Assumed to be in the same directory.\r\nValueError: Attempted relative import in non-package\r\n''"

This issue is being handled by subgroup 3.

Comments (1)

  1. g8mjg reporter

    Fixed. The import in django\conf\project_template\manage.py was being overwritten by 2to3, breaking it.

    Changing the import syntax to use import instead ensures this doesn't happen and preserves the same functionality, as best we can tell.

    Net change -66 failures

  2. Log in to comment