diff options
author | Jason Pellerin <jpellerin@gmail.com> | 2008-04-29 18:19:20 +0000 |
---|---|---|
committer | Jason Pellerin <jpellerin@gmail.com> | 2008-04-29 18:19:20 +0000 |
commit | 4c64df3007993c8829df35c16d2c08b8c5aef94e (patch) | |
tree | 0d0cd7ee39d42c74ef9c2baaaff2ef8b956e48d6 /nose/config.py | |
parent | fc6fde9609decb772bbb80a10dc6267279688a75 (diff) | |
download | nose-4c64df3007993c8829df35c16d2c08b8c5aef94e.tar.gz |
Fixed issue 183 (IronPython compatibility)
Diffstat (limited to 'nose/config.py')
-rw-r--r-- | nose/config.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nose/config.py b/nose/config.py index be24aed..71dbe2e 100644 --- a/nose/config.py +++ b/nose/config.py @@ -21,6 +21,10 @@ config_files = [ "~/nose.cfg" ] +# plaforms on which the exe check defaults to off +# Windows and IronPython +exe_allowed_platforms = ('win32', 'cli') + class NoSuchOptionError(Exception): def __init__(self, name): @@ -146,7 +150,7 @@ class Config(object): self.exclude = None self.getTestCaseNamesCompat = False self.includeExe = env.get('NOSE_INCLUDE_EXE', - sys.platform == 'win32') + sys.platform in exe_allowed_platforms) self.ignoreFiles = (re.compile(r'^\.'), re.compile(r'^_'), re.compile(r'^setup\.py$') @@ -180,7 +184,7 @@ class Config(object): self.exclude = None self.getTestCaseNamesCompat = False self.includeExe = env.get('NOSE_INCLUDE_EXE', - sys.platform == 'win32') + sys.platform in exe_allowed_platforms) self.ignoreFiles = (re.compile(r'^\.'), re.compile(r'^_'), re.compile(r'^setup\.py$') |