From 8f2c5c4f749c3f9dbd1fbbd8ea1aa914d7f5d3ba Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Tue, 3 Dec 2013 16:21:38 +0000 Subject: Don't support Python 2.4 test method naming. --- testtools/testcase.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'testtools/testcase.py') diff --git a/testtools/testcase.py b/testtools/testcase.py index 0b7862f..a5ac710 100644 --- a/testtools/testcase.py +++ b/testtools/testcase.py @@ -577,12 +577,7 @@ class TestCase(unittest.TestCase): return ret def _get_test_method(self): - absent_attr = object() - # Python 2.5+ - method_name = getattr(self, '_testMethodName', absent_attr) - if method_name is absent_attr: - # Python 2.4 - method_name = getattr(self, '_TestCase__testMethodName') + method_name = getattr(self, '_testMethodName') return getattr(self, method_name) def _run_test_method(self, result): -- cgit v1.2.1