Adding Mitogen plugin and strategy.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import testmods.simple_pkg.b
|
||||
|
||||
|
||||
def subtract_one_add_two(n):
|
||||
return testmods.simple_pkg.b.subtract_one(n) + 2
|
||||
@@ -0,0 +1,2 @@
|
||||
def subtract_one(n):
|
||||
return n - 1
|
||||
@@ -0,0 +1,6 @@
|
||||
# issue #590: this module imports a module that replaces itself in sys.modules
|
||||
# during initialization.
|
||||
import testmods.simple_pkg.replaces_self
|
||||
|
||||
def subtract_one(n):
|
||||
return testmods.simple_pkg.replaces_self.subtract_one(n)
|
||||
@@ -0,0 +1,4 @@
|
||||
def ping(*args):
|
||||
return args
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# issue #590: this module replaces itself in sys.modules during initialization.
|
||||
import sys
|
||||
import testmods.simple_pkg.b
|
||||
sys.modules[__name__] = testmods.simple_pkg.b
|
||||
Reference in New Issue
Block a user