Modify ↓
#117 closed defect (fixed)
assert failure in <c:cppunit> if srcdir is defined
| Reported by: | anonymous | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | major | Milestone: | 0.6 |
| Component: | General | Version: | 0.5.3 |
| Keywords: | Cc: | ||
| Operating System: |
Description
Python gives this error if srcdir is specified in <c:cppunit> command:
[ERROR ] global name 'posixpath' is not defined
Traceback (most recent call last):
File "/usr/local/python2.4/lib/python2.4/asyncore.py", line 69, in read
obj.handle_read_event()
File "/usr/local/python2.4/lib/python2.4/asyncore.py", line 391, in handle_read_event
self.handle_read()
File "/usr/local/python2.4/lib/python2.4/asynchat.py", line 137, in handle_read
self.found_terminator()
File "build/bdist.linux-i686/egg/bitten/util/beep.py", line 278, in found_terminator
File "build/bdist.linux-i686/egg/bitten/util/beep.py", line 311, in _handle_frame
File "build/bdist.linux-i686/egg/bitten/util/beep.py", line 465, in handle_data_frame
File "build/bdist.linux-i686/egg/bitten/slave.py", line 152, in handle_msg
File "build/bdist.linux-i686/egg/bitten/slave.py", line 176, in execute_build
File "build/bdist.linux-i686/egg/bitten/recipe.py", line 125, in execute
File "build/bdist.linux-i686/egg/bitten/recipe.py", line 70, in run
File "build/bdist.linux-i686/egg/bitten/build/ctools.py", line 84, in cppunit
NameError: global name 'posixpath' is not defined
The attached patch will fix it.
Attachments (1)
Change History (3)
Changed 20 years ago by joel@…
comment:1 follow-up: ↓ 2 Changed 16 years ago by osimons
- Milestone set to 0.6
- Resolution set to fixed
- Status changed from new to closed
Latest trunk already imports posixpath.
However, we shouldn't really use that module directly - instead os.path should be used to get the correct path module for the platform Python runs on. I've changed this in [677].
comment:2 in reply to: ↑ 1 Changed 16 years ago by osimons
Note: See
TracTickets for help on using
tickets.

fix for ctools.py