Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
exclude new xmlfile() tests in Py2.4 as they require the 'with' state…
…ment
  • Loading branch information
scoder committed Nov 20, 2012
1 parent 4ddb818 commit ce3051e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test.py
Expand Up @@ -561,6 +561,12 @@ 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 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:
Expand Down

0 comments on commit ce3051e

Please sign in to comment.