Skip to content

Commit

Permalink
Merge pull request #123 from dhavlik/master
Browse files Browse the repository at this point in the history
Use the correct method.
  • Loading branch information
Daniel Havlik authored Aug 22, 2019
2 parents 7f5aca3 + 4ec9ab7 commit c111ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plone/recipe/zope2instance/ctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,8 @@ def get_startup_cmd(self, python, more, pyflags=""):

if not self.options.no_request:
cmdline += (
'import Testing.makerequest; '
'app = Testing.makerequest(app); '
'from Testing.makerequest import makerequest; '
'app = Testing.makerequest.makerequest(app); '
# REQUEST.traverse needs this but no reason not to set
# this even if we're not traversing to an object
'app.REQUEST[\'PARENTS\'] = [app]; '
Expand Down

0 comments on commit c111ccd

Please sign in to comment.