A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ipython/ipython/commit/8274f38c9421e162418bda7365359b961b5895d9 below:

allow nose with-doctest setting in environment · ipython/ipython@8274f38 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+9

-9

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+9

-9

lines changed Original file line number Diff line number Diff line change

@@ -355,19 +355,13 @@ def run_iptest():

355 355

# for nose >= 0.11, though unfortunately nose 0.10 doesn't support it.

356 356

argv.append('--traverse-namespace')

357 357 358 -

# Construct list of plugins, omitting the existing doctest plugin, which

359 -

# ours replaces (and extends).

358 +

# use our plugin for doctesting. It will remove the standard doctest plugin

359 +

# if it finds it enabled

360 360

plugins = [IPythonDoctest(make_exclude()), KnownFailure()]

361 -

for p in nose.plugins.builtin.plugins:

362 -

plug = p()

363 -

if plug.name == 'doctest':

364 -

continue

365 -

plugins.append(plug)

366 - 367 361

# We need a global ipython running in this process

368 362

globalipapp.start_ipython()

369 363

# Now nose can run

370 -

TestProgram(argv=argv, plugins=plugins)

364 +

TestProgram(argv=argv, addplugins=plugins)

371 365 372 366 373 367

def run_iptestall():

Original file line number Diff line number Diff line change

@@ -640,6 +640,9 @@ def options(self, parser, env=os.environ):

640 640 641 641

def configure(self, options, config):

642 642

Plugin.configure(self, options, config)

643 +

# Pull standard doctest plugin out of config; we will do doctesting

644 +

config.plugins.plugins = [p for p in config.plugins.plugins

645 +

if p.name != 'doctest']

643 646

self.doctest_tests = options.doctest_tests

644 647

self.extension = tolist(options.doctestExtension)

645 648

@@ -783,6 +786,9 @@ def options(self, parser, env=os.environ):

783 786

def configure(self, options, config):

784 787

#print "Configuring nose plugin:", self.name # dbg

785 788

Plugin.configure(self, options, config)

789 +

# Pull standard doctest plugin out of config; we will do doctesting

790 +

config.plugins.plugins = [p for p in config.plugins.plugins

791 +

if p.name != 'doctest']

786 792

self.doctest_tests = options.ipdoctest_tests

787 793

self.extension = tolist(options.ipdoctest_extension)

788 794

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4