Commit Graph

8924 Commits

Author SHA1 Message Date
Fernando Perez
ae70bfc440 Let iptest pass arguments correctly to nose (in-process or in subprocess).
Fixes https://bugs.launchpad.net/ipython/+bug/507079

Also, remove relative imports from the iptest.py module so it can be run as
a script as well under 2.5 or 2.6.
2010-01-15 01:06:34 -08:00
Fernando Perez
1621f0a23f Fix bug where python -c "import IPython; IPython.test()" could fail.
Depending on where one was located when typing it, it could fail.  Made all
necessary paths absolute so this doesn't happen.
2010-01-13 00:32:13 -08:00
Fernando Perez
59117c597e Include 'kernel' in the nose tests as well; it picks up doctests that trial
doesn't.
2010-01-12 23:58:30 -08:00
Fernando Perez
91791416ab Fixes for test suite in win32 when all dependencies (esp. Twisted) are
installed.

Also activated testing.tools to be picked up by the test suite (was
excluded), this gives us a few more tests.

Status:

- On Linux, the full suite passes like before.

- On Win32, now that we have Twisted, we're seeing a few failures, because I
don't have the WinHPC server stuff.  These should be easy for Brian to fix.
There are also two tests where the Skip nose exception isn't recognized by
Twisted, should also be easy.  I'll file tickets for those.
2010-01-12 23:21:21 -08:00
Fernando Perez
56d74fedba Move cleanup to main setup.py, where it belongs.
Distutils now generates .egg-info stuff even without setuptools, so we
should do the cleanup in the main script.
2010-01-12 21:03:16 -08:00
Fernando Perez
e3a6f8da77 Fix test failure when pexpect not available 2010-01-12 17:39:42 -08:00
Fernando Perez
2b7da9a1bd Fix test suite when Twisted not available, cleanups to iptest for clarity. 2010-01-12 17:36:00 -08:00
Fernando Perez
0e94b28cd8 Remove accidentally introduced runtime nose dependencies. 2010-01-12 12:42:23 -08:00
Fernando Perez
f7422d6539 Improve setuptools support.
Many thanks to Gael for the code/idea for the solution, see bug page for
details.

Fixes: https://bugs.launchpad.net/ipython/+bug/504968
2010-01-09 19:31:46 -08:00
Fernando Perez
22cb80d555 Fix config part of the test suite. 2010-01-09 17:55:56 -08:00
Fernando Perez
72cb0a3c73 Massive amount of work to improve the test suite, restores doctests.
After Brian's comments, I realized that our test machinery was NOT in
reality running all the ipython-syntax doctests we have.  This is now fixed.
The test suite isn't completely passing, but this commit is for the
underlying machinery.  I will now work on fixing as many broken tests as I
can.

Fixes https://bugs.launchpad.net/ipython/+bug/505071
2010-01-09 16:30:59 -08:00
Fernando Perez
6d8161fac0 A few small fixes so ipythonx works, and PEP-8 cleanups I found along the way. 2010-01-07 17:39:24 -08:00
Fernando Perez
e68e992d80 Improve test suite robustness by cleaning up stale processes when possible. 2010-01-07 16:47:46 -08:00
Fernando Perez
dabdb5361a Work in multiple places to improve state of the test suite.
With these changes, on my system now all the test sub-suites pass except
for the Twisted one (see https://bugs.launchpad.net/ipython/+bug/504515 for
details on that one).
2010-01-07 16:04:08 -08:00
Fernando Perez
dd4405c646 Progress towards getting the test suite in shape again.
Work all over the place to get more tests to pass.
2010-01-06 01:56:27 -08:00
Fernando Perez
ed2f210ebe Add new testing support machinery with better parametric tests.
Also included are new tools for doctests with ipython syntax.
2009-12-31 19:26:22 -08:00
Fernando Perez
12a323ff6d Merging with upstream trunk 2009-12-30 11:32:39 -08:00
Brian Granger
9cab40c1fe Merging Brian's work on branch: lp:~ipython-dev/ipython/kernel-config
This makes trunk significantly more usable again.
2009-12-30 11:26:16 -08:00
bgranger
18fab0d4a1 Fixing a few small things on Windows.
* No os.environ['USER'].
* get_home_dir() now first looks at %HOMESHARE% to get a UNC shared
  path if it exists.
* Minor fixes for setupbase.py.
2009-11-08 12:09:07 -08:00
Brian Granger
4c83569772 Semi-working refactored ipcluster.
This version uses the NotificationCenter, which I am not sure I like.
But, it is important to see how all of this works.
2009-10-28 18:15:02 -07:00
Brian Granger
c9b9d7550a The ipengine script has been refactored to use the new config system.
It is also now a formal Application: IPython.kernel.ipengineapp
2009-10-21 20:06:22 -07:00
Brian Granger
f0301f402b Work on ipcontroller.
* The IPControllerApp now uses ApplicationWithDir to manage the app_dir.
* The setup.py script and ipcontroller script have been updated to use
  the new IPControllerApp.
* launch_new_instance created and being used.
2009-10-18 09:25:32 -07:00
Brian Granger
d44d9d96fa Merging the config-refactor branch.
This branch did start with the config system refactor, but moved on
from there.  Here are some highlights.

* New config system.
* Traitlets
* Componenets
* Applications
* The main ipython program has been refactored to use these new
  abstractions.
2009-09-28 13:59:23 -07:00
Brian Granger
4ca0ac83cc First failed attempt to get the test suite to run. 2009-09-17 21:29:54 -07:00
Brian Granger
81e0e8805d Removed ipapi compatability layer and updated top-level functions.
The ipapi.py module has been completely deprecated as of this point.
No new code should use it and all existing code that uses it will
migrate away from it.  The launch_new_instance function has
been moved to ipapp and the setup.py scripts have been updated.
2009-09-17 19:59:36 -07:00
Brian Granger
cf5972e4aa Fixed small bug in setup.py.
We have removed the config.userconfig directory.
2009-09-17 15:20:16 -07:00
Brian Granger
7031a8fa95 Merging the inputhook branch. 2009-08-31 15:21:10 -07:00
Brian Granger
ee8f2e43e3 Massive package and module reorganization of all of IPython.
* New top-level sub-packages have been created: :mod:`IPython.core`, 
  :mod:`IPython.lib`, :mod:`IPython.utils`, :mod:`IPython.deathrow`,
  :mod:`IPython.quarantine`.  All existing top-level modules have been
  moved to appropriate sub-packages.  All internal import statements
  have been updated and tests have been added.  The build system (setup.py
  and friends) have been updated.
* Compatability modules have been created for :mod:`IPython.Shell`, 
  :mod:`IPython.ipapi` and :mod:`IPython.iplib` that display warnings
  and then load the actual implementation from :mod:`IPython.core`.
* :mod:`Extensions` has been moved to :mod:`extensions`.
2009-08-13 16:15:05 -07:00
Brian Granger
e10677aaff Merging upstream changes from inputhook branch.
These changes are being propagated from trunk->module-reorg->inputhook
to me.
2009-08-04 12:29:37 -07:00
Brian Granger
5f4dfb3d53 Merging upstream change from module-reorg branch.
Recently lp:ipython was merged into module-reorg.  This is propagating
that merge into this inputhook branch.
2009-08-04 11:19:33 -07:00
Brian Granger
d2126ac322 Merging -r 1196 from lp:ipython.
A couple of issues came up:

* Some tests in testing and frontend rely on twisted, but are being
  tested with nose.  This is bad!  We currently have hackish logic in
  iptest to skip these if twisted is not installed, but if it is we
  are testing them with nose!
* Some modules (engineservice, kernel/error, newserialized) have nose
  skip logic even though they should never be tested with nose.
* When trial is run on testStrictDict we get an uncaught error.

testStrictDict ... ERROR: An unexpected error occurred while tokenizing 
input The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (37, 0))
2009-08-04 09:50:23 -07:00
Brian Granger
61cc720e11 Merging -r 1192 from lp:ipython. 2009-08-04 08:22:09 -07:00
Brian Granger
551b819cd4 Merging -r 1185 from lp:ipython. 2009-08-03 23:52:39 -07:00
Fernando Perez
2f50493d06 Fixes so the test suite runs when Twisted is not available.
Other minor cleanups (formatting and unused imports)
2009-08-03 18:18:28 -07:00
Brian Granger
6b0c7134ef Merging -r 1180 from lp:ipthon
No conflicts!
2009-08-03 13:04:27 -07:00
Brian Granger
acc15a048b Merging -r 1177 from lp:ipython with fixes and resolutions.
The main conflicts I had to fix were in ultratb.  I have removed
the ultraTB.py in IPython/kernel/core.  Now IPython/core/ultratb.py
is being used everywhere.  Also I have protected the calls to ipapi.get
to see if None is returned.  This happens when trial IPython.kernel
is run.
2009-08-03 12:50:56 -07:00
Fernando Perez
f64ae7afe9 Make iptest more reliable under Win32.
This ensures the trial part of the tests runs in win32.
2009-08-01 17:08:32 -07:00
Fernando Perez
5826bcce9a [bug] Close debian bugs: remove debian/ dir and add missing man pages.
This closes the bugs:

https://bugs.launchpad.net/ipython/+bug/291143
https://bugs.launchpad.net/ipython/+bug/368719

The manpages were contributed by Debian's Stephan Peijnik, and lightly
edited to update them with current trunk functionality.
2009-07-31 17:51:28 -07:00
Fernando Perez
b7d773553d Update setup and support tools to include new man pages. 2009-07-30 18:16:44 -07:00
Fernando Perez
7a98356a91 Merging a number of recent bug fixes in preparation for the 0.10 release.
No new features were introduced, but many test failures and a few bugs were
fixed.  In particular, closes:

https://bugs.launchpad.net/ipython/+bug/362137
2009-07-30 12:33:49 -07:00
Fernando Perez
0331faae06 Small fixes for wx-dependent tests and include clearcmd.
Check that wx.aui can be imported and otherwise exclude modules that use it to
avoid errors when loading the test suite.

Also, do load clearcmd so that the tests for %clear do work.
2009-07-29 02:13:26 -07:00
Brian Granger
a76420c74e Merging upstream changes. 2009-07-28 09:33:37 -07:00
Brian Granger
4e709cd95d Updated iptest to skip inputhook*.py files for doctesting. 2009-07-27 15:52:00 -07:00
Brian Granger
255992e5ae Merging upstream from module-reorg. 2009-07-27 15:46:28 -07:00
Brian Granger
58e345c261 Refactored iptest.py to work with new package org.
In the process I had to fix 2 small bugs to get all the tests passing.
2009-07-27 15:38:27 -07:00
Brian Granger
6221939722 Renaming Extensions=>extensions in code and imports. 2009-07-20 15:16:34 -07:00
Brian Granger
f50040feec Fixing a few bugs to get the win32 installer working again. 2009-07-02 15:59:26 -07:00
Brian Granger
7b495ced75 Fixing installation related issues. 2009-07-02 14:35:36 -07:00
Brian Granger
f53e35c98b UserConfig => config/userconfig and imports updated. 2009-07-02 12:04:09 -07:00
Brian Granger
629dabdeab upgrade_dir.py => utils/upgradedir.py and updated imports. 2009-07-02 11:32:19 -07:00