GLOB sdist-make: /tmp/tmpbdvvik9x/pytest-cram-0.2.0/setup.py py37 create: /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37 py37 installdeps: pytest==5.2.4, cram py37 inst: /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/.tmp/package/1/pytest-cram-0.2.0.zip py37 installed: atomicwrites==1.3.0,attrs==19.3.0,cram==0.7,importlib-metadata==1.1.0,more-itertools==8.0.0,packaging==19.2,pluggy==0.13.1,py==1.8.0,pyparsing==2.4.5,pytest==5.2.4,pytest-cram==0.2.0,six==1.13.0,wcwidth==0.1.7,zipp==0.6.0 py37 run-test-pre: PYTHONHASHSEED='1836076647' py37 run-test: commands[0] | py.test /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 cachedir: .tox/py37/.pytest_cache rootdir: /tmp/tmpbdvvik9x/pytest-cram-0.2.0, inifile: tox.ini plugins: cram-0.2.0 collected 15 items .tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_examples.py . [ 6%] FFFFFFF [ 53%] .tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_options.py . [ 60%] .FFFFF [100%] =================================== FAILURES =================================== __________________________________ test_bare ___________________________________ testdir = def test_bare(testdir): """Bare example. Should pass.""" testdir.makefile('.t', " $ true") result = testdir.runpytest() > assert result.ret == 0 E assert == 0 E + where = len(stdout.lines)=33 len(stderr.lines)=1 duration=1.14s>.ret /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_examples.py:26: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-10/test_bare0 plugins: cram-0.2.0 collected 1 item test_bare.t F [100%] =================================== FAILURES =================================== ______________________________ [cram] test_bare.t ______________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' =============================== warnings summary =============================== /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325 /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.cram - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning, -- Docs: https://docs.pytest.org/en/latest/warnings.html ======================== 1 failed, 1 warnings in 0.64s ========================= __________________________________ test_empty __________________________________ testdir = def test_empty(testdir): """Empty example. Should be skipped.""" testdir.makefile('.t', "") result = testdir.runpytest("-rs") > assert result.ret == 0 E assert == 0 E + where = len(stdout.lines)=33 len(stderr.lines)=1 duration=0.82s>.ret /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_examples.py:34: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-10/test_empty0 plugins: cram-0.2.0 collected 1 item test_empty.t F [100%] =================================== FAILURES =================================== _____________________________ [cram] test_empty.t ______________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' =============================== warnings summary =============================== /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325 /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.cram - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning, -- Docs: https://docs.pytest.org/en/latest/warnings.html ======================== 1 failed, 1 warnings in 0.34s ========================= ___________________________________ test_env ___________________________________ testdir = def test_env(testdir): """Environment example. Should pass.""" testdir.makefile('.t', r""" Check environment variables: $ echo "$LANG" C $ echo "$LC_ALL" C $ echo "$LANGUAGE" C $ echo "$TZ" GMT $ echo "$CDPATH" $ echo "$GREP_OPTIONS" $ echo "$CRAMTMP" .+ (re) $ echo "$TESTDIR" *{sep}test_env* (glob) $ ls "$TESTDIR" test_env.t $ echo "$TESTFILE" test_env.t $ pwd */test_env* (glob) """.format(sep=os.path.sep)) result = testdir.runpytest() > assert result.ret == 0 E assert == 0 E + where = len(stdout.lines)=33 len(stderr.lines)=1 duration=0.90s>.ret /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_examples.py:70: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-10/test_env0 plugins: cram-0.2.0 collected 1 item test_env.t F [100%] =================================== FAILURES =================================== ______________________________ [cram] test_env.t _______________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' =============================== warnings summary =============================== /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325 /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.cram - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning, -- Docs: https://docs.pytest.org/en/latest/warnings.html ======================== 1 failed, 1 warnings in 0.41s ========================= __________________________________ test_fail ___________________________________ testdir = def test_fail(testdir): """Fail example. Should fail for several reasons.""" testdir.makefile('.t', r""" Output needing escaping: $ printf '\00\01\02\03\04\05\06\07\010\011\013\014\016\017\020\021\022\n' foo $ printf '\023\024\025\026\027\030\031\032\033\034\035\036\037\040\047\n' bar Wrong output and bad regexes: $ echo 1 2 $ printf '1\nfoo\n1\n' +++ (re) foo\ (re) (re) Filler to force a second diff hunk: Offset regular expression: $ printf 'foo\n\n1\n' \d (re) """) # Subprocess needed for these weird shell commands result = testdir.runpytest() assert result.ret != 0 result.stdout.fnmatch_lines(["test_fail.t F*", "@@ -1,18 +1,18 @@", r"+*\x11\x12 (esc)", r"*\x1e\x1f ' (esc)", "+ 1", "@@ -20,5 +20,6 @@", "+ foo", > "*1 failed*"]) E Failed: nomatch: 'test_fail.t F*' E and: '============================= test session starts ==============================' E and: 'platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1' E and: 'rootdir: /tmp/pytest-of-travis/pytest-10/test_fail0' E and: 'plugins: cram-0.2.0' E and: 'collected 1 item' E and: '' E fnmatch: 'test_fail.t F*' E with: 'test_fail.t F [100%]' E nomatch: '@@ -1,18 +1,18 @@' E and: '' E and: '=================================== FAILURES ===================================' E and: '______________________________ [cram] test_fail.t ______________________________' E and: '/tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__' E and: ' return self._hookexec(self, self.get_hookimpls(), kwargs)' E and: '/tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: '/tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec' E and: ' return outcome.get_result()' E and: '/tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in ' E and: ' outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs))' E and: '/tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: '/tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call' E and: ' item.runtest()' E and: '/tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest' E and: ' shell=pytest.config.option.shell)' E and: "E AttributeError: module 'pytest' has no attribute 'config'" E and: '=============================== warnings summary ===============================' E and: '/tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325' E and: ' /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.cram - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html' E and: ' PytestUnknownMarkWarning,' E and: '' E and: '-- Docs: https://docs.pytest.org/en/latest/warnings.html' E and: '======================== 1 failed, 1 warnings in 0.30s =========================' E and: '' E remains unmatched: '@@ -1,18 +1,18 @@' /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_examples.py:113: Failed ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-10/test_fail0 plugins: cram-0.2.0 collected 1 item test_fail.t F [100%] =================================== FAILURES =================================== ______________________________ [cram] test_fail.t ______________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' =============================== warnings summary =============================== /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325 /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.cram - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning, -- Docs: https://docs.pytest.org/en/latest/warnings.html ======================== 1 failed, 1 warnings in 0.30s ========================= _______________________________ test_missingeol ________________________________ testdir = def test_missingeol(testdir): """Missing EOL example. Should pass.""" testdir.makefile('.t', " $ printf foo", " foo (no-eol)") result = testdir.runpytest() > assert result.ret == 0 E assert == 0 E + where = len(stdout.lines)=33 len(stderr.lines)=1 duration=0.83s>.ret /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_examples.py:120: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-10/test_missingeol0 plugins: cram-0.2.0 collected 1 item test_missingeol.t F [100%] =================================== FAILURES =================================== ___________________________ [cram] test_missingeol.t ___________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' =============================== warnings summary =============================== /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325 /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.cram - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning, -- Docs: https://docs.pytest.org/en/latest/warnings.html ======================== 1 failed, 1 warnings in 0.31s ========================= __________________________________ test_skip ___________________________________ testdir = def test_skip(testdir): """Skip example. Should be marked as skipped.""" testdir.makefile('.t', """ This test is considered "skipped" because it exits with return code 80. This is useful for skipping tests that only work on certain platforms or in certain settings. $ exit 80 """) result = testdir.runpytest("-rs") > assert result.ret == 0 E assert == 0 E + where = len(stdout.lines)=33 len(stderr.lines)=1 duration=0.88s>.ret /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_examples.py:134: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-10/test_skip0 plugins: cram-0.2.0 collected 1 item test_skip.t F [100%] =================================== FAILURES =================================== ______________________________ [cram] test_skip.t ______________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' =============================== warnings summary =============================== /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325 /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.cram - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning, -- Docs: https://docs.pytest.org/en/latest/warnings.html ======================== 1 failed, 1 warnings in 0.33s ========================= __________________________________ test_test ___________________________________ testdir = def test_test(testdir): """Test example. Should pass.""" testdir.makefile('.t', r""" Simple commands: $ echo foo foo $ printf 'bar\nbaz\n' | cat bar baz Multi-line command: $ foo() { > echo bar > } $ foo bar Regular expression: $ echo foobarbaz foobar.* (re) Glob: $ printf '* \\foobarbaz {10}\n' \* \\fo?bar* {10} (glob) Literal match ending in (re) and (glob): $ echo 'foo\Z\Z\Z bar (re)' foo\Z\Z\Z bar (re) $ echo 'baz??? quux (glob)' baz??? quux (glob) Exit code: $ (exit 1) [1] Write to stderr: $ echo foo >&2 foo No newline: $ printf foo foo (no-eol) $ printf 'foo\nbar' foo bar (no-eol) $ printf ' ' (no-eol) $ printf ' \n ' (no-eol) $ echo foo foo $ printf foo foo (no-eol) Escaped output: $ printf '\00\01\02\03\04\05\06\07\010\011\013\014\016\017\020\021\022\n' \x00\x01\x02\x03\x04\x05\x06\x07\x08\t\x0b\x0c\x0e\x0f\x10\x11\x12 (esc) $ printf '\023\024\025\026\027\030\031\032\033\034\035\036\037\040\047\n' \x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f ' (esc) $ echo hi \x68\x69 (esc) $ echo '(esc) in output (esc)' (esc) in output (esc) $ echo '(esc) in output (esc)' (esc) in output \x28esc\x29 (esc) Command that closes a pipe: $ cat /dev/urandom | head -1 > /dev/null If Cram let Python's SIGPIPE handler get inherited by this script, we might see broken pipe messages. """) result = testdir.runpytest() > assert result.ret == 0 E assert == 0 E + where = len(stdout.lines)=33 len(stderr.lines)=1 duration=0.89s>.ret /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_examples.py:224: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-10/test_test0 plugins: cram-0.2.0 collected 1 item test_test.t F [100%] =================================== FAILURES =================================== ______________________________ [cram] test_test.t ______________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' =============================== warnings summary =============================== /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325 /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.cram - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning, -- Docs: https://docs.pytest.org/en/latest/warnings.html ======================== 1 failed, 1 warnings in 0.37s ========================= ___________________________ test_shell_cli[/bin/sh] ____________________________ testdir = shell = '/bin/sh' @pytest.mark.skipif(sys.platform == 'win32', reason="assuming Posix shell") @pytest.mark.parametrize('shell', ['/bin/sh', '/bin/bash']) def test_shell_cli(testdir, shell): """Ensure that --shell changes the shell used.""" testdir.makefile('.t', r""" Echoing $0 should give us the current shell. $ echo "$0" {} """.format(shell)) result = testdir.runpytest("--shell={}".format(shell)) > assert result.ret == 0 E assert == 0 E + where = len(stdout.lines)=33 len(stderr.lines)=1 duration=0.84s>.ret /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_options.py:35: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-10/test_shell_cli0 plugins: cram-0.2.0 collected 1 item test_shell_cli.t F [100%] =================================== FAILURES =================================== ___________________________ [cram] test_shell_cli.t ____________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' =============================== warnings summary =============================== /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325 /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.cram - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning, -- Docs: https://docs.pytest.org/en/latest/warnings.html ======================== 1 failed, 1 warnings in 0.36s ========================= __________________________ test_shell_cli[/bin/bash] ___________________________ testdir = shell = '/bin/bash' @pytest.mark.skipif(sys.platform == 'win32', reason="assuming Posix shell") @pytest.mark.parametrize('shell', ['/bin/sh', '/bin/bash']) def test_shell_cli(testdir, shell): """Ensure that --shell changes the shell used.""" testdir.makefile('.t', r""" Echoing $0 should give us the current shell. $ echo "$0" {} """.format(shell)) result = testdir.runpytest("--shell={}".format(shell)) > assert result.ret == 0 E assert == 0 E + where = len(stdout.lines)=33 len(stderr.lines)=1 duration=0.83s>.ret /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_options.py:35: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-10/test_shell_cli1 plugins: cram-0.2.0 collected 1 item test_shell_cli.t F [100%] =================================== FAILURES =================================== ___________________________ [cram] test_shell_cli.t ____________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' =============================== warnings summary =============================== /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325 /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.cram - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning, -- Docs: https://docs.pytest.org/en/latest/warnings.html ======================== 1 failed, 1 warnings in 0.32s ========================= ___________________________ test_shell_env[/bin/sh] ____________________________ testdir = shell = '/bin/sh' @pytest.mark.skipif(sys.platform == 'win32', reason="assuming Posix shell") @pytest.mark.parametrize('shell', ['/bin/sh', '/bin/bash']) def test_shell_env(testdir, shell): """Ensure that the CRAMSHELL variable changes the shell used.""" testdir.makefile('.t', r""" Echoing $0 should give us the current shell. $ echo "$0" {0} $ echo "$CRAMSHELL" {0} """.format(shell)) os.environ["CRAMSHELL"] = shell result = testdir.runpytest() del os.environ["CRAMSHELL"] > assert result.ret == 0 E assert == 0 E + where = len(stdout.lines)=33 len(stderr.lines)=1 duration=0.84s>.ret /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_options.py:54: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-10/test_shell_env0 plugins: cram-0.2.0 collected 1 item test_shell_env.t F [100%] =================================== FAILURES =================================== ___________________________ [cram] test_shell_env.t ____________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' =============================== warnings summary =============================== /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325 /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.cram - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning, -- Docs: https://docs.pytest.org/en/latest/warnings.html ======================== 1 failed, 1 warnings in 0.32s ========================= __________________________ test_shell_env[/bin/bash] ___________________________ testdir = shell = '/bin/bash' @pytest.mark.skipif(sys.platform == 'win32', reason="assuming Posix shell") @pytest.mark.parametrize('shell', ['/bin/sh', '/bin/bash']) def test_shell_env(testdir, shell): """Ensure that the CRAMSHELL variable changes the shell used.""" testdir.makefile('.t', r""" Echoing $0 should give us the current shell. $ echo "$0" {0} $ echo "$CRAMSHELL" {0} """.format(shell)) os.environ["CRAMSHELL"] = shell result = testdir.runpytest() del os.environ["CRAMSHELL"] > assert result.ret == 0 E assert == 0 E + where = len(stdout.lines)=33 len(stderr.lines)=1 duration=0.83s>.ret /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_options.py:54: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-10/test_shell_env1 plugins: cram-0.2.0 collected 1 item test_shell_env.t F [100%] =================================== FAILURES =================================== ___________________________ [cram] test_shell_env.t ____________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' =============================== warnings summary =============================== /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325 /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.cram - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning, -- Docs: https://docs.pytest.org/en/latest/warnings.html ======================== 1 failed, 1 warnings in 0.34s ========================= _______________________________ test_cramignore ________________________________ testdir = def test_cramignore(testdir): """Ensure that the cramignore option ignore the appropriate cram tests.""" testdir.makeini(""" [pytest] cramignore = sub/a*.t a.t c*.t """) testdir.tmpdir.ensure(os.path.join("sub", "a.t")) testdir.tmpdir.ensure(os.path.join("sub", "a0.t")) testdir.tmpdir.ensure("a.t") testdir.tmpdir.ensure("a0.t") testdir.tmpdir.ensure("b.t") testdir.tmpdir.ensure("b0.t") testdir.tmpdir.ensure("c.t") testdir.tmpdir.ensure("c0.t") result = testdir.runpytest() > assert result.ret == 0 E assert == 0 E + where = len(stdout.lines)=67 len(stderr.lines)=1 duration=1.70s>.ret /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/tests/test_options.py:77: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.2.4, py-1.8.0, pluggy-0.13.1 rootdir: /tmp/pytest-of-travis/pytest-10/test_cramignore0, inifile: tox.ini plugins: cram-0.2.0 collected 3 items a0.t F [ 33%] b.t F [ 66%] b0.t F [100%] =================================== FAILURES =================================== _________________________________ [cram] a0.t __________________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' __________________________________ [cram] b.t __________________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' _________________________________ [cram] b0.t __________________________________ /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:337: in traced_hookexec return outcome.get_result() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:335: in outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs)) /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pluggy/manager.py:87: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/runner.py:125: in pytest_runtest_call item.runtest() /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/pytest_cram/__init__.py:54: in runtest shell=pytest.config.option.shell) E AttributeError: module 'pytest' has no attribute 'config' =============================== warnings summary =============================== /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325 /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/lib/python3.7/site-packages/_pytest/mark/structures.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.cram - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning, -- Docs: https://docs.pytest.org/en/latest/warnings.html ======================== 3 failed, 1 warnings in 1.25s ========================= ======================== 12 failed, 3 passed in 13.96s ========================= ERROR: InvocationError for command /tmp/tmpbdvvik9x/pytest-cram-0.2.0/.tox/py37/bin/py.test .tox/py37/lib/python3.7/site-packages/pytest_cram (exited with code 1) ___________________________________ summary ____________________________________ ERROR: py37: commands failed write json report at: /tmp/tmpbdvvik9x/pytest-cram-0.2.0/result.json Time: 93.8 seconds