interactive failure when running tests

8 views
Skip to first unread message

smichr

unread,
Jul 18, 2012, 9:18:52 PM7/18/12
to sy...@googlegroups.com
32-bit tests under 2.7.3 give the following failure:

  File "c:\users\cps\sympy\sympy\interactive\tests\test_ipython.py", line 24,
 in test_automatic_symbols
    app = init_ipython_session()
  File "C:\Users\cps\sympy\sympy\interactive\session.py", line 114, in init_i
python_session
    app.initialize(argv)
  File "C:\Python27\lib\site-packages\IPython\frontend\terminal\ipapp.py", line
283, in initialize
    self.init_shell()
  File "C:\Python27\lib\site-packages\IPython\frontend\terminal\ipapp.py", line
303, in init_shell
    ipython_dir=self.ipython_dir)
  File "C:\Python27\lib\site-packages\IPython\config\configurable.py", line 295,
 in instance
    inst = cls(*args, **kwargs)
  File "C:\Python27\lib\site-packages\IPython\frontend\terminal\interactiveshell
.py", line 113, in __init__
    user_global_ns=user_global_ns, custom_exceptions=custom_exceptions
  File "C:\Python27\lib\site-packages\IPython\core\interactiveshell.py", line 38
6, in __init__
    self.db = PickleShareDB(os.path.join(self.profile_dir.location, 'db'))
  File "C:\Python27\lib\site-packages\IPython\utils\pickleshare.py", line 52, in
 __init__
    if not self.root.isdir():
TypeError: _isdir() takes exactly 1 argument (0 given)

Has anyone else seen this? I don't have IPython installed, so perhaps something should be skipping tests in this case.

Aaron Meurer

unread,
Jul 18, 2012, 9:25:00 PM7/18/12
to sy...@googlegroups.com
According to the paths in the traceback, you do have IPython
installed. What version is it? You can tell by importing it ("import
IPython") and looking at IPython.__version__. If it's older than
0.10, the test is not guaranteed to work (though I suppose it would
still be reasonable to skip it in that case).

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/sympy/-/z6N3Kl8pFuEJ.
> To post to this group, send email to sy...@googlegroups.com.
> To unsubscribe from this group, send email to
> sympy+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.
Reply all
Reply to author
Forward
0 new messages