From a45898012f1c07d020ecaa2d629902e5eed5fe0d Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Wed, 3 Mar 2010 19:53:39 +0000 Subject: Defer conditional import of IPython to avoid breakage under mod_wsgi. o http://bugs.repoze.org/issue138 --- repoze/bfg/tests/test_paster.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'repoze/bfg/tests') diff --git a/repoze/bfg/tests/test_paster.py b/repoze/bfg/tests/test_paster.py index cabde215e..c2bbb12ad 100644 --- a/repoze/bfg/tests/test_paster.py +++ b/repoze/bfg/tests/test_paster.py @@ -20,7 +20,7 @@ class TestBFGShellCommand(unittest.TestCase): class Options(object): pass command.options = Options() command.options.disable_ipython =True - command.command() + command.command(IPShell=None) self.assertEqual(loadapp.config_name, 'config:/foo/bar/myapp.ini') self.assertEqual(loadapp.section_name, 'myapp') self.failUnless(loadapp.relative_to) @@ -38,12 +38,11 @@ class TestBFGShellCommand(unittest.TestCase): loadapp = DummyLoadApp(app) command.loadapp = (loadapp,) dummy_shell_factory = DummyIPShellFactory() - command.IPShell = dummy_shell_factory command.args = ('/foo/bar/myapp.ini', 'myapp') class Options(object): pass command.options = Options() command.options.disable_ipython = False - command.command() + command.command(IPShell=dummy_shell_factory) self.assertEqual(loadapp.config_name, 'config:/foo/bar/myapp.ini') self.assertEqual(loadapp.section_name, 'myapp') self.failUnless(loadapp.relative_to) -- cgit v1.2.3