From 566a32b31a0111813c736eb7011b6cb2f41434de 2010-09-01 03:32:35 From: Fernando Perez Date: 2010-09-01 03:32:35 Subject: [PATCH] Make our temp file mixin unittest-friendly. This does not break any nose compatibility, but it lets us use our mixin with normal unittest.TestCase objects in addition to nose-oriented tests. We're trying to lower our dependency on specifics of the nose api, so that in the future we might be able to run without nose at all (as unittest improves). --- diff --git a/IPython/testing/tools.py b/IPython/testing/tools.py index 8622a6b..2477cbb 100644 --- a/IPython/testing/tools.py +++ b/IPython/testing/tools.py @@ -263,7 +263,7 @@ class TempFileMixin(object): self.tmpfile = f self.fname = fname - def teardown(self): + def tearDown(self): if hasattr(self, 'tmpfile'): # If the tmpfile wasn't made because of skipped tests, like in # win32, there's nothing to cleanup.