Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Commit

Permalink
Disable decorator tests on Python 2.3 which didn't have decorator sup…
Browse files Browse the repository at this point in the history
…port yet

Signed-off-by: R. Tyler Ballance <tyler@slide.com>
  • Loading branch information
R. Tyler Ballance committed Apr 24, 2009
1 parent 499995f commit 303e674
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Tests/Template.py
Expand Up @@ -324,6 +324,9 @@ def test_FailCase(self):

class ClassMethodSupport(TemplateTest):
def test_BasicDecorator(self):
if sys.version_info[0] == 2 and sys.version_info[1] == 3:
print 'This version of Python doesn\'t support decorators, skipping tests'
return
template = '''
#@classmethod
#def myClassMethod()
Expand All @@ -339,6 +342,9 @@ def test_BasicDecorator(self):

class StaticMethodSupport(TemplateTest):
def test_BasicDecorator(self):
if sys.version_info[0] == 2 and sys.version_info[1] == 3:
print 'This version of Python doesn\'t support decorators, skipping tests'
return
template = '''
#@staticmethod
#def myStaticMethod()
Expand Down

0 comments on commit 303e674

Please sign in to comment.