diff options
author | jpellerin <devnull@localhost> | 2009-05-14 21:03:02 -0400 |
---|---|---|
committer | jpellerin <devnull@localhost> | 2009-05-14 21:03:02 -0400 |
commit | 4496595f588fd1d945d39a67cd1416c2c0114fdf (patch) | |
tree | 6db1f6a4fffe446ee99c3df6b421b12dbe3536e2 /nose/config.py | |
parent | e6191c45ba458b485fc1150fb36bbf78161fe88d (diff) | |
download | nose-4496595f588fd1d945d39a67cd1416c2c0114fdf.tar.gz |
Made Config pickle-friendly to enable mp on windows
Diffstat (limited to 'nose/config.py')
-rw-r--r-- | nose/config.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nose/config.py b/nose/config.py index 080ccab..d08e714 100644 --- a/nose/config.py +++ b/nose/config.py @@ -206,7 +206,7 @@ class Config(object): self.traverseNamespace = False self.firstPackageWins = False self.parserClass = OptionParser - + self._default = self.__dict__.copy() self.update(kw) self._orig = self.__dict__.copy() @@ -219,11 +219,11 @@ class Config(object): del state['env'] del state['logStream'] return state - + def __repr__(self): d = self.__dict__.copy() # don't expose env, could include sensitive info - d['env'] = {} + d['env'] = {} keys = [ k for k in d.keys() if not k.startswith('_') ] keys.sort() |