##// END OF EJS Templates
Respect DB_IP and DB_PORT in mongodb tests....
Respect DB_IP and DB_PORT in mongodb tests. It is usually preferred to run tests on a test-local database with dedicated mongod instance rather than using the system-wide database. In order to support that, an easy way of providing the proper port is handy. For example, pymongo test suite uses DB_IP and DB_PORT environment variables to allow providing an alternate mongod instance. Using the same variable names in IPython's test suite seems a good idea.

File last commit:

r4669:45cf1867
r9539:b0f830ff
Show More
__init__.py
11 lines | 319 B | text/x-python | PythonLexer
try:
import argparse
# don't use system argparse if older than 1.1:
if argparse.__version__ < '1.1':
raise ImportError
else:
from argparse import *
from argparse import SUPPRESS
except (ImportError, AttributeError):
from _argparse import *
from _argparse import SUPPRESS