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

resolve SyntaxError in modeltests.basic

Johan Harjono
created an issue

No description provided.

Comments (5)

  1. Johan Harjono reporter

    Note that the test cases shouldn't be carelessly edited, the test cases should be workable in 2.x and 3.x so I suppose ideally a modification to 2to3 would be ideal?

  2. Martin von Löwis

    Yes, you should integrate doctest conversion into setup.py. This should be done through 2to3 API, though, rather than invoking a command line 2to3. In any case, you should only run it on files that were just copied into the build area, rather than on all files (which may take forever).

    Unfortunately, distutils.util.run_2to3 doesn't support passing the doctests_only flag to RefactoringTool, so you would have to copy that.

  3. Log in to comment