diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2014-04-05 10:50:08 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2014-04-05 10:50:08 +0200 |
commit | 12839929b26a749a8c78b9ea0df0398d1d77398c (patch) | |
tree | 3f3b0b71d9aa1e1efd2ee9ba3441bcc6b4eaae6f /test.py | |
parent | 78e08f856ecca69b62c113e60812f0837573733f (diff) | |
download | python-lxml-12839929b26a749a8c78b9ea0df0398d1d77398c.tar.gz |
remove special handling code for old Python versions from tests
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -457,8 +457,8 @@ def main(argv): """Main program.""" # Environment - if sys.version_info < (2, 3): - stderr('%s: need Python 2.3 or later' % argv[0]) + if sys.version_info < (2, 6): + stderr('%s: need Python 2.6 or later' % argv[0]) stderr('your python is %s' % sys.version) return 1 @@ -562,18 +562,6 @@ def main(argv): # Finding and importing test_files = get_test_files(cfg) - if sys.version_info[:2] < (2,5): - # exclude tests that require the 'with' statement - test_files = [ - test_file for test_file in test_files - if 'test_incremental_xmlfile.py' not in test_file] - - if sys.version_info[:2] < (2,6): - # exclude tests that require recent Python features - test_files = [ - test_file for test_file in test_files - if 'test_http_io.py' not in test_file] - if cfg.list_tests or cfg.run_tests: test_cases = get_test_cases(test_files, cfg, tracer=tracer) if cfg.list_hooks or cfg.run_tests: |