python3 compatibility warning during install

Bug #941958 reported by John A Meinel
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
testtools
Fix Released
Medium
Unassigned

Bug Description

I just tried to install testtools 0.9.14 into Python3.2 and ran into this:

Installing collected packages: testtools
  Running setup.py install for testtools
      File "C:\Python32\BASE\Lib\site-packages\testtools\_compat2x.py", line 16
        raise exc_class, exc_obj, exc_tb
                       ^
    SyntaxError: invalid syntax

    warning: no files found matching 'HACKING'
    warning: no files found matching 'MANUAL'
    no previously-included directories found matching 'doc\_build'
Successfully installed testtools

It turns out it actually did "install successfully" but I was quite confused by the error.

Revision history for this message
Jonathan Lange (jml) wrote :

Right. That file contains Python code that we need and simply will not work in Python 3.x. I guess we could somehow conditionally exclude it from the install when installing for Python 3.

Also, the other warnings need addressing.

Changed in testtools:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Robert Collins (lifeless) wrote :

Will bond has contributed a fix.

Changed in testtools:
status: Triaged → Fix Committed
milestone: none → next
Changed in testtools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.