Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 293887

Summary: dev-python/urwid-0.9.9 fails tests with Python 2.7
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 292401    
Attachments: urwid-0.9.9:20091120-192520.log

Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-20 20:02:19 UTC
dev-python/urwid-0.9.9 fails tests with Python 2.7.
The order of items of dictionary is different in representation. Dictionaries are unordered, so it's only problem in comparison of representations.

File "/var/tmp/portage/dev-python/urwid-0.9.9/work/urwid-0.9.9/urwid/decoration.py", line 114, in urwid.decoration.AttrMap.__init__
Failed example:
    am2
Expected:
    <AttrMap flow widget <Text flow widget 'hi'> attr_map={None: 'bg', 'word': 'greeting'}>
Got:
    <AttrMap flow widget <Text flow widget 'hi'> attr_map={'word': 'greeting', None: 'bg'}>
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-20 20:03:35 UTC
Created attachment 210740 [details]
urwid-0.9.9:20091120-192520.log
Comment 2 Matthias Liebig 2010-12-02 14:48:51 UTC
Tests work fine with urwid-0.9.9.1 from the tree (using python-2.7.1).
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-12-05 16:13:34 UTC
Tests of dev-python/urwid-0.9.9.1 pass with Python 2.7.