diff options
| author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2007-04-12 09:57:21 +0200 |
|---|---|---|
| committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2007-04-12 09:57:21 +0200 |
| commit | 0fd5b636cbbf9441f06a6aaba72768fc30c93c6d (patch) | |
| tree | 98fc3e323b54f9f45306f10438c4f6ce4180f0b1 | |
| parent | 6dceb642a3876c2bc169f59dfb686435c259cbb1 (diff) | |
| download | astroid-git-0fd5b636cbbf9441f06a6aaba72768fc30c93c6d.tar.gz | |
2.3 test fixes
| -rw-r--r-- | test/unittest_inference.py | 2 | ||||
| -rw-r--r-- | test/unittest_lookup.py | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/unittest_inference.py b/test/unittest_inference.py index cb5299e3..26912b7b 100644 --- a/test/unittest_inference.py +++ b/test/unittest_inference.py @@ -668,6 +668,8 @@ un = mirror(1) self.failUnlessEqual(infered[0].value, 1) def test_factory_method(self): + if sys.version_info < (2, 4): + self.skip('this test require python >= 2.4') data = ''' class Super(object): @classmethod diff --git a/test/unittest_lookup.py b/test/unittest_lookup.py index 18d903c8..b2a432b6 100644 --- a/test/unittest_lookup.py +++ b/test/unittest_lookup.py @@ -12,7 +12,7 @@ # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. """tests for the astng variable lookup capabilities """ - +import sys from os.path import join, abspath from logilab.common.testlib import TestCase, unittest_main @@ -115,6 +115,8 @@ class A(A): self.assertEquals(ccc.ilookup('Ddd').next().name, 'Ddd') def test_nonregr_method_lookup(self): + if sys.version_info < (2, 4): + self.skip('this test require python >= 2.4') data = ''' class FileA: @staticmethod @@ -135,6 +137,8 @@ class Test: self.assertRaises(StopIteration, it.next) def test_nonregr_decorator_member_lookup(self): + if sys.version_info < (2, 4): + self.skip('this test require python >= 2.4') data = ''' class FileA: def decorator(bla): |
