unit test error when testing more than app

Bug #807653 reported by dbartenstein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPC4Django
Fix Released
Medium
davidfischer

Bug Description

When I call unit tests for multiple apps like 'python manage.py test main server' (main and server are both apps), the test fails with TemplateSyntaxError: Caught Fault while rendering: <Fault 1: '<type \'exceptions.Exception\'>:method "is_rpcmethod.__eq__" is not supported'>

This has to do with the statement 'if callable(method) and \ hasattr(method, 'is_rpcmethod') and \ method.is_rpcmethod == True:' in rpcdispatcher.py and is provoked when method is an instance of ServerProxy. hasattr always returns True on a ServerProxy object.

As (temporary) workaround I added a check for ServerProxy instance (see attachment).

Revision history for this message
dbartenstein (dominikb) wrote :
Revision history for this message
davidfischer (djfische) wrote :

I'll get this into the release.

Changed in rpc4django:
milestone: none → 0.1.9
assignee: nobody → davidfischer (djfische)
importance: Undecided → Medium
status: New → In Progress
davidfischer (djfische)
Changed in rpc4django:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers