You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, #103 is closed off and the following happens:
$ pytest --version
This is pytest version 3.0.4 ...
$ echo"# -*- coding: utf-8 -*-\nassert 'ål', in 'a'"> test_foo.py | pytest
=================================================================================================================== ERRORS ====================================================================================================================
________________________________________________________________________________________________________ ERROR collecting test_foo.py _________________________________________________________________________________________________________
.venv/lib/python3.5/site-packages/_pytest/python.py:415: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
.venv/lib/python3.5/site-packages/py/_path/local.py:650: in pyimport
__import__(modname)
E File "/home/lwm/hobby/pytest/test_foo.py", line 2
E assert 'ål', in'a'
E ^
E SyntaxError: invalid syntax
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=========================================================================================================== 1 error in 1.63 seconds ===========================================================================================================
The example is obviously not valid Python syntax and broken, but pytest should raise a SyntaxError.
The text was updated successfully, but these errors were encountered: