Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failures in test_xmlrpc #49189

Closed
pitrou opened this issue Jan 13, 2009 · 10 comments
Closed

Failures in test_xmlrpc #49189

pitrou opened this issue Jan 13, 2009 · 10 comments
Labels
stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@pitrou
Copy link
Member

pitrou commented Jan 13, 2009

BPO 4939
Nosy @pitrou, @kristjanvalur, @vstinner, @benjaminp

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2009-01-13.23:48:55.223>
created_at = <Date 2009-01-13.23:22:35.279>
labels = ['library', 'type-crash']
title = 'Failures in test_xmlrpc'
updated_at = <Date 2009-01-14.00:14:12.248>
user = 'https://github.com/pitrou'

bugs.python.org fields:

activity = <Date 2009-01-14.00:14:12.248>
actor = 'kristjan.jonsson'
assignee = 'none'
closed = True
closed_date = <Date 2009-01-13.23:48:55.223>
closer = 'benjamin.peterson'
components = ['Library (Lib)']
creation = <Date 2009-01-13.23:22:35.279>
creator = 'pitrou'
dependencies = []
files = []
hgrepos = []
issue_num = 4939
keywords = []
message_count = 10.0
messages = ['79792', '79800', '79802', '79805', '79807', '79808', '79809', '79811', '79812', '79813']
nosy_count = 4.0
nosy_names = ['pitrou', 'kristjan.jonsson', 'vstinner', 'benjamin.peterson']
pr_nums = []
priority = 'critical'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue4939'
versions = ['Python 2.7']

@pitrou
Copy link
Member Author

pitrou commented Jan 13, 2009

This is witnessed on trunk, at home as well as on the buildbots:

======================================================================
ERROR: test_dotted_attribute (test.test_xmlrpc.SimpleServerTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/antoine/cpython/__svn__/Lib/test/test_xmlrpc.py", line
492, in test_dotted_attribute
    self.test_simple1()
  File "/home/antoine/cpython/__svn__/Lib/test/test_xmlrpc.py", line
376, in test_simple1
    self.assertEqual(p.pow(6,8), 6**8)
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1199, in
__call__
    return self.__send(self.__name, args)
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1465, in
__request
    verbose=self.__verbose
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1248, in
request
    return self._parse_response(h.getfile())
AttributeError: Transport instance has no attribute '_parse_response'

======================================================================
ERROR: test_introspection1 (test.test_xmlrpc.SimpleServerTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/antoine/cpython/__svn__/Lib/test/test_xmlrpc.py", line
398, in test_introspection1
    meth = p.system.listMethods()
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1199, in
__call__
    return self.__send(self.__name, args)
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1465, in
__request
    verbose=self.__verbose
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1248, in
request
    return self._parse_response(h.getfile())
AttributeError: Transport instance has no attribute '_parse_response'

======================================================================
ERROR: test_introspection2 (test.test_xmlrpc.SimpleServerTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/antoine/cpython/__svn__/Lib/test/test_xmlrpc.py", line
413, in test_introspection2
    divhelp = p.system.methodHelp('div')
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1199, in
__call__
    return self.__send(self.__name, args)
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1465, in
__request
    verbose=self.__verbose
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1248, in
request
    return self._parse_response(h.getfile())
AttributeError: Transport instance has no attribute '_parse_response'

======================================================================
ERROR: test_introspection3 (test.test_xmlrpc.SimpleServerTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/antoine/cpython/__svn__/Lib/test/test_xmlrpc.py", line
425, in test_introspection3
    myfunction = p.system.methodHelp('my_function')
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1199, in
__call__
    return self.__send(self.__name, args)
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1465, in
__request
    verbose=self.__verbose
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1248, in
request
    return self._parse_response(h.getfile())
AttributeError: Transport instance has no attribute '_parse_response'

======================================================================
ERROR: test_introspection4 (test.test_xmlrpc.SimpleServerTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/antoine/cpython/__svn__/Lib/test/test_xmlrpc.py", line
438, in test_introspection4
    divsig = p.system.methodSignature('div')
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1199, in
__call__
    return self.__send(self.__name, args)
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1465, in
__request
    verbose=self.__verbose
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1248, in
request
    return self._parse_response(h.getfile())
AttributeError: Transport instance has no attribute '_parse_response'

======================================================================
ERROR: test_multicall (test.test_xmlrpc.SimpleServerTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/antoine/cpython/__svn__/Lib/test/test_xmlrpc.py", line
453, in test_multicall
    add_result, pow_result, div_result = multicall()
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1042, in
__call__
    return
MultiCallIterator(self.__server.system.multicall(marshalled_list))
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1199, in
__call__
    return self.__send(self.__name, args)
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1465, in
__request
    verbose=self.__verbose
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1248, in
request
    return self._parse_response(h.getfile())
AttributeError: Transport instance has no attribute '_parse_response'

======================================================================
ERROR: test_non_existing_multicall (test.test_xmlrpc.SimpleServerTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/antoine/cpython/__svn__/Lib/test/test_xmlrpc.py", line
468, in test_non_existing_multicall
    result = multicall()
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1042, in
__call__
    return
MultiCallIterator(self.__server.system.multicall(marshalled_list))
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1199, in
__call__
    return self.__send(self.__name, args)
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1465, in
__request
    verbose=self.__verbose
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1248, in
request
    return self._parse_response(h.getfile())
AttributeError: Transport instance has no attribute '_parse_response'

======================================================================
ERROR: test_simple1 (test.test_xmlrpc.SimpleServerTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/antoine/cpython/__svn__/Lib/test/test_xmlrpc.py", line
376, in test_simple1
    self.assertEqual(p.pow(6,8), 6**8)
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1199, in
__call__
    return self.__send(self.__name, args)
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1465, in
__request
    verbose=self.__verbose
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1248, in
request
    return self._parse_response(h.getfile())
AttributeError: Transport instance has no attribute '_parse_response'

======================================================================
ERROR: test_basic (test.test_xmlrpc.FailingServerTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/antoine/cpython/__svn__/Lib/test/test_xmlrpc.py", line
534, in test_basic
    self.assertEqual(p.pow(6,8), 6**8)
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1199, in
__call__
    return self.__send(self.__name, args)
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1465, in
__request
    verbose=self.__verbose
  File "/home/antoine/cpython/__svn__/Lib/xmlrpclib.py", line 1248, in
request
    return self._parse_response(h.getfile())
AttributeError: Transport instance has no attribute '_parse_response'

@pitrou pitrou added stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump labels Jan 13, 2009
@vstinner
Copy link
Member

Regression introduced by r68532. Replace self._parse_response() by
self.parse_response() fixes the tests.

@vstinner
Copy link
Member

r68532 was a fix for the issue bpo-4879 and removed an old compatibility
interface (_parse_response).

@kristjanvalur
Copy link
Mannequin

kristjanvalur mannequin commented Jan 13, 2009

Oh dear, this is because it skips those tests on windows. I'll check
in a fix to xmlrpclib.py

@benjaminp
Copy link
Contributor

Fixed in r68597.

@kristjanvalur
Copy link
Mannequin

kristjanvalur mannequin commented Jan 13, 2009

Ok, you beat me to it.
So, is there any good reason to keep those xmlrpc tests defunct on
win32 still?

@benjaminp
Copy link
Contributor

On Tue, Jan 13, 2009 at 5:52 PM, Kristján Valur Jónsson
<report@bugs.python.org> wrote:

Kristján Valur Jónsson <kristjan@ccpgames.com> added the comment:

Ok, you beat me to it.

Sorry, I just seem to have bad timing today. :)

So, is there any good reason to keep those xmlrpc tests defunct on
win32 still?

I'm not sure. Have you tried enabling them?

@kristjanvalur
Copy link
Mannequin

kristjanvalur mannequin commented Jan 14, 2009

Yes and they work, but do take some 10 seconds to run. If it is
similar on unix, I'll do so. What's your numbers?

@benjaminp
Copy link
Contributor

On Tue, Jan 13, 2009 at 6:11 PM, Kristján Valur Jónsson
<report@bugs.python.org> wrote:

Kristján Valur Jónsson <kristjan@ccpgames.com> added the comment:

Yes and they work, but do take some 10 seconds to run. If it is
similar on unix, I'll do so. What's your numbers?

It takes about a second to run them here.

@kristjanvalur
Copy link
Mannequin

kristjanvalur mannequin commented Jan 14, 2009

Ok, I'll keep them disabled until I figure out why they take so long.
Maybe there is some performance enhancements yet to be made :)

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

3 participants