Skip to content

Unable To Run pytest For 01_hello #15

@zmazza

Description

@zmazza

I am experiencing an error when running pytest -xv test.py in the 01_hello directory.

============================================================================= ERRORS =============================================================================
____________________________________________________________________ ERROR collecting test.py ____________________________________________________________________
/usr/lib/python2.7/dist-packages/_pytest/python.py:507: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/lib/python2.7/dist-packages/py/_path/local.py:701: in pyimport
import(modname)
E File "/home/zmazza/tiny_python_projects/01_hello/test.py", line 21
E out = getoutput(f'python3 {prg}')
E ^
E SyntaxError: invalid syntax
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
==================================================================== 1 error in 0.11 seconds =====================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions