diff options
author | Fabrice Douchant <Fabrice.Douchant@logilab.fr> | 2008-10-23 17:29:33 +0200 |
---|---|---|
committer | Fabrice Douchant <Fabrice.Douchant@logilab.fr> | 2008-10-23 17:29:33 +0200 |
commit | 718e57155211188be3e6c9c61bc34bbc5670e4d8 (patch) | |
tree | 35fc99d34668d8fd2c6f7daa0e15b2f5d8a66fb2 | |
parent | d1598d28dae24d125422ff9b4ec18cc1d828fdb1 (diff) | |
download | logilab-common-718e57155211188be3e6c9c61bc34bbc5670e4d8.tar.gz |
add setUp and tearDown not to mess with sys.version. Now works with python2.4
-rw-r--r-- | test/unittest_testlib.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unittest_testlib.py b/test/unittest_testlib.py index afdf932..e7fcc2c 100644 --- a/test/unittest_testlib.py +++ b/test/unittest_testlib.py @@ -670,6 +670,13 @@ class DecoratorTC(TestCase): self.assertListEquals(list(os.walk(tempdir)), [(tempdir,[],[])]) + + def setUp(self): + self.pyversion = sys.version_info + + def tearDown(self): + sys.version_info = self.pyversion + def test_require_version_good(self): """ should return the same function """ |