[svn r52481] Python2.3 has no 'sorted()' yet.

--HG--
branch : trunk
This commit is contained in:
guido 2008-03-14 12:08:21 +01:00
parent 14bdc16dd5
commit 41cd138f2e
1 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@
import py
from py.__.apigen import apigen
py.test.skip("Apigen functionality temporarily disabled")
#py.test.skip("Apigen functionality temporarily disabled")
def setup_module(mod):
if py.std.sys.platform == "win32":
@ -117,7 +117,9 @@ def test_get_documentable_items():
pkgname, documentable = apigen.get_documentable_items_pkgdir(
fs_root.join(package_name))
assert pkgname == 'pak'
assert sorted(documentable.keys()) == [
keys = documentable.keys()
keys.sort()
assert keys == [
'main.SomeTestClass', 'main.SomeTestSubClass', 'main.func',
'main.sub.func', 'somenamespace.baz', 'somenamespace.foo']