Edgewall Software
Modify

Opened 18 years ago

Closed 15 years ago

#123 closed defect (worksforme)

[trac 0.10dev] trac.web.api.Request.__init__ has two additional arguments

Reported by: Axel.Thimm@… Owned by: cmlenz
Priority: major Milestone:
Component: General Version:
Keywords: Cc:
Operating System:

Description

I'm trying to get trac 0.10dev running with bitten, both 0.5.3 and trunk. Due to WSGI support Request has now two (additional) arguments in its constructor:

        @param environ: The WSGI environment dict
        @param start_response: The WSGI callback for starting the response

Many tests fail therefore with errors like

Traceback (most recent call last):
  File "/var/tmp/bach-build/BUILD/Bitten-0.6dev-r372/bitten/trac_ext/tests/web_ui.py", line 133, in test_view_config_admin
    hdf=HDFWrapper(), perm=PermissionCache(self.env, 'joe'))
  File "/usr/lib/python2.4/site-packages/trac/test.py", line 78, in Mock
    mock = cls(*initargs)
TypeError: __init__() takes exactly 3 arguments (1 given)

Attachments (0)

Change History (1)

comment:1 Changed 15 years ago by osimons

  • Resolution set to worksforme
  • Status changed from new to closed

As far as I know, 0.5.3 works fine with Trac 0.10.x and trunk is for Trac 0.11.x. I don't think anyone would want to dig into Trac 0.10dev (pre-release) version at this stage...

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain cmlenz.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.