summaryrefslogtreecommitdiff
path: root/nose/plugins/prof.py
diff options
context:
space:
mode:
authorjpellerin <devnull@localhost>2009-05-14 21:03:02 -0400
committerjpellerin <devnull@localhost>2009-05-14 21:03:02 -0400
commit4496595f588fd1d945d39a67cd1416c2c0114fdf (patch)
tree6db1f6a4fffe446ee99c3df6b421b12dbe3536e2 /nose/plugins/prof.py
parente6191c45ba458b485fc1150fb36bbf78161fe88d (diff)
downloadnose-4496595f588fd1d945d39a67cd1416c2c0114fdf.tar.gz
Made Config pickle-friendly to enable mp on windows
Diffstat (limited to 'nose/plugins/prof.py')
-rw-r--r--nose/plugins/prof.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/nose/plugins/prof.py b/nose/plugins/prof.py
index 729d1e0..c9fabdc 100644
--- a/nose/plugins/prof.py
+++ b/nose/plugins/prof.py
@@ -56,7 +56,7 @@ class Profile(Plugin):
def available(cls):
return hotshot is not None
available = classmethod(available)
-
+
def begin(self):
"""Create profile stats file and load profiler.
"""
@@ -82,7 +82,7 @@ class Profile(Plugin):
self.fileno = None
self.sort = options.profile_sort
self.restrict = tolist(options.profile_restrict)
-
+
def prepareTest(self, test):
"""Wrap entire test run in :func:`prof.runcall`.
"""
@@ -93,7 +93,7 @@ class Profile(Plugin):
self._create_pfile()
prof.runcall(test, result)
return run_and_profile
-
+
def report(self, stream):
"""Output profiler report.
"""
@@ -152,6 +152,3 @@ class Profile(Plugin):
if not self.pfile:
self.fileno, self.pfile = tempfile.mkstemp()
self.clean_stats_file = True
-
- def __getstate__(self):
- return {}