##// END OF EJS Templates
Merge of the ipython-ipython1a branch into the ipython trunk. This merge represents the first...
Merge of the ipython-ipython1a branch into the ipython trunk. This merge represents the first merging of the things in ipython1-dev into ipython. More specifically, this merge includes the basic ipython1 kernel and a few related subpackages. Most importantly, the setup.py script and friends have been refactored.

File last commit:

r1237:7c8d2f7b
r1247:48fb9d90 merge
Show More
tcommon.py
36 lines | 749 B | text/x-python | PythonLexer
"""Common utilities for testing IPython.
This file is meant to be used as
from IPython.testing.tcommon import *
by any test code.
While a bit ugly, this helps us keep all testing facilities in one place, and
start coding standalone test scripts easily, which can then be pasted into the
larger test suites without any modifications required.
"""
# Required modules and packages
# Standard Python lib
import cPickle as pickle
import doctest
import math
import os
import sys
import unittest
from pprint import pformat, pprint
# From the IPython test lib
import tutils
from tutils import fullPath
try:
import pexpect
except ImportError:
pexpect = None
else:
from IPython.testing.ipdoctest import IPDocTestLoader,makeTestSuite