[Bug 791221] Re: Nova's test suite fails with python 2.7.2rc1

Barry Warsaw 791221 at bugs.launchpad.net
Thu Jun 2 21:09:55 UTC 2011


I think this one is even simpler to illustrate the change:

class Foo:
    def __dir__(self):
        return ['a', 'b', 'c']

class Bar:
    def __dir__(self):
        return ('a', 'b', 'c')

print dir(Foo())
print dir(Bar())

AFAICT, in Python 2.7.1 you get two lines of ['a', 'b', 'c'] while in
2.7.2rc2, the second line gives you the TypeError.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/791221

Title:
  Nova's test suite fails with python 2.7.2rc1



More information about the Ubuntu-server-bugs mailing list