=== modified file 'a/test/unittest_builder.py' --- a/test/unittest_builder.py +++ b/test/unittest_builder.py @@ -159,11 +159,10 @@ def test_socket_build(self): import socket astng = self.builder.module_build(socket) - for fclass in astng.igetattr('socket'): - print fclass.root().name, fclass.name, fclass.lineno - self.assert_('connect' in fclass) - self.assert_('send' in fclass) - self.assert_('close' in fclass) + fclass = astng.igetattr('socket').next() + self.assert_('connect' in fclass) + self.assert_('send' in fclass) + self.assert_('close' in fclass) class FileBuildTC(TestCase):