python-twisted-web package contains assertion that is always true

Bug #364141 reported by Martin Olsson
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
twisted-web (Ubuntu)
Triaged
Low
Unassigned

Bug Description

1. boot jaunty RC live CD
2. install package "python-twisted-web"
3. the following is printed:

Setting up python-twisted-web (8.2.0-0ubuntu1) ...
/usr/lib/python2.6/dist-packages/twisted/web/microdom.py:181: SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert (oldChild.parentNode is self,

Note: the semantics of assert() has changed a lot between python 2.5 and 3.0 (not sure which way python 2.6 leans)

LAST PACKAGE TESTED:
python-twisted-web (8.2.0-2ubuntu1) ...

Revision history for this message
Jonathan Gibert (jokot3) wrote :

I can confirm this behavior with package version 8.2.0-2.
the warning is not raised with python2.5

zsh 618 % python2.5 /usr/lib/python2.6/dist-packages/twisted/web/microdom.py

zsh 619 % python2.6 /usr/lib/python2.6/dist-packages/twisted/web/microdom.py
/usr/lib/python2.6/dist-packages/twisted/web/microdom.py:181: SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert (oldChild.parentNode is self,

Changed in twisted-web (Ubuntu):
status: New → Confirmed
Revision history for this message
KevinM (kevbert1) wrote :

Seen in jaunty kernel 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux
when performing an install of moovida via terminal...
Setting up python-twisted-web (8.2.0-2) ...
/usr/lib/python2.6/dist-packages/twisted/web/microdom.py:181: SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert (oldChild.parentNode is self,

Revision history for this message
Micah Gersten (micahg) wrote :

This is still occurring in Karmic. There appears to be enough information for a developer to fix this, so I am marking this Triaged.

Changed in twisted-web (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
description: updated
Revision history for this message
crackerdog (crackerdog) wrote :

Seen as well in Karmic Koala 9.10

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.