--- you can reply above this line ---

New issue 205: Test failure with Python 2.5
https://bitbucket.org/hpk42/pytest/issue/205/test-failure-with-python-25

Arfrever Frehtes Taifersar Arahesis:

This problem was introduced in pytest 2.3.0.
Results for pytest hg tip:

{{{
$ python2.5 pytest.py
==================================================================== test 
session starts 
====================================================================
platform linux2 -- Python 2.5.6 -- pytest-2.3.2.dev2
collected 816 items / 1 errors / 1 skipped 

doc/en/example/assertion/test_failures.py .
doc/en/example/assertion/test_setup_flow_example.py ..
doc/en/example/assertion/global_testmodule_config/test_hello.py .
doc/en/example/costlysetup/sub1/test_quick.py .
doc/en/example/costlysetup/sub2/test_two.py ..
doc/en/example/py2py3/test_py2.py .
testing/acceptance_test.py ......................................x.......
testing/test_assertinterpret.py ........ss..........s......
testing/test_assertion.py s............s.ssxs.....
testing/test_capture.py ..............x....................
testing/test_collection.py ...........x...................
testing/test_config.py ........x................
testing/test_conftest.py ..............................
testing/test_core.py ...................................................
testing/test_doctest.py .........
testing/test_genscript.py .....sss
testing/test_helpconfig.py ........
testing/test_junitxml.py ......................
testing/test_mark.py ...................ss..............
testing/test_monkeypatch.py ......................
testing/test_nose.py ssssssssss
testing/test_parseopt.py ............
testing/test_pastebin.py ...
testing/test_pdb.py ....sssssss.
testing/test_pytester.py x.......
testing/test_python.py 
...................................................................................................................................x........................................
testing/test_recwarn.py ........
testing/test_resultlog.py .........
testing/test_runner.py .................sssssss..ssss.......x........
testing/test_runner_xunit.py ..........
testing/test_session.py ...............
testing/test_skipping.py ...................................
testing/test_terminal.py 
.......s.........................s............................
testing/test_tmpdir.py ......
testing/test_unittest.py ..................sss....s.

========================================================================== 
ERRORS 
===========================================================================
____________________________________________________ ERROR collecting 
doc/en/example/py2py3/test_py3.py 
_____________________________________________________
_pytest/python.py:352: in _importtestmodule
>           mod = self.fspath.pyimport(ensuresyspath=True)
/usr/lib64/python2.5/site-packages/py/_path/local.py:532: in pyimport
>           __import__(modname)
E             File "/tmp/pytest/doc/en/example/py2py3/test_py3.py", line 5
E               except ZeroDivisionError as e:
E                                         ^
E           SyntaxError: invalid syntax
---------------------------------------------------------------------- Captured 
stderr ----------------------------------------------------------------------
/tmp/pytest/doc/en/example/py2py3/test_py3.py:5: Warning: 'as' will become a 
reserved keyword in Python 2.6
================================================================== short test 
summary info ==================================================================
XFAIL 
testing/acceptance_test.py::TestInvocationVariants::()::test_noclass_discovery_if_not_testcase
  decide: feature or bug
XFAIL testing/test_assertion.py::test_assert_compare_truncate_longmessage
  condition: sys.version_info < (2,6)
XFAIL 
testing/test_capture.py::TestPerTestCapturing::()::test_capture_scope_cache
XFAIL 
testing/test_collection.py::TestPrunetraceback::()::test_collect_report_postprocessing
  other mechanism for adding to reporting needed
XFAIL testing/test_config.py::TestParseIni::()::test_confcutdir
  probably not needed
XFAIL testing/test_pytester.py::test_reportrecorder
  reason: internal reportrecorder tests need refactoring
XFAIL 
testing/test_python.py::TestAutouseDiscovery::()::test_setup_enabled_functionnode
  'enabled' feature not implemented
XFAIL testing/test_runner.py::test_runtest_in_module_ordering
SKIP [8] /tmp/pytest/_pytest/pytester.py:530: could not import 'pexpect'
SKIP [1] /tmp/pytest/testing/conftest.py:109: no suitable jython found
SKIP [10] /tmp/pytest/_pytest/skipping.py:120: condition: sys.version_info < 
(2,6)
SKIP [2] /tmp/pytest/_pytest/core.py:121: plugin 'xdist' is missing
SKIP [1] /tmp/pytest/testing/test_assertrewrite.py:7: could not import 'ast'
SKIP [1] /tmp/pytest/testing/conftest.py:109: no suitable pypy found
SKIP [11] /tmp/pytest/testing/test_runner.py:277: could not import 
'xdist.plugin'
SKIP [10] /tmp/pytest/testing/test_nose.py:4: could not import 'nose'
SKIP [1] /tmp/pytest/_pytest/skipping.py:120: condition: sys.version_info < 
(2,7)
SKIP [3] /tmp/pytest/testing/test_unittest.py:271: could not import 
'twisted.trial.unittest'
=============================================== 761 passed, 48 skipped, 8 
xfailed, 1 error in 131.09 seconds 
================================================
}}}    


--

This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.
_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to