Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: removed dependence from top-level packages on the subpackage wit…
…h tests (#103) Authored-by: Daniel Zagaynov <kotopesutility@altlinux.org>
- Loading branch information
1 parent
e1fc6f2
commit 64f14ee
Showing
4 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import os | ||
import mdp | ||
from mdp.test import test as mdp_test | ||
|
||
# wrap the mdp.test function and set the module path to bimdp path | ||
infodict = mdp.NodeMetaclass._function_infodict(mdp.test) | ||
# wrap the mdp.test.test function and set the module path to bimdp path | ||
infodict = mdp.NodeMetaclass._function_infodict(mdp_test) | ||
idx = infodict["argnames"].index('mod_loc') | ||
defaults = list(infodict['defaults']) | ||
defaults[idx] = os.path.dirname(__file__) | ||
infodict['defaults'] = tuple(defaults) | ||
|
||
test = mdp.NodeMetaclass._wrap_function(mdp.test, infodict) | ||
test = mdp.NodeMetaclass._wrap_function(mdp_test, infodict) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters