Skip to content

Instantly share code, notes, and snippets.

@nicoddemus
Created July 26, 2017 18:59
Show Gist options
  • Save nicoddemus/fb844dade0c4b14a1fd49b5cdb00d6ce to your computer and use it in GitHub Desktop.
Save nicoddemus/fb844dade0c4b14a1fd49b5cdb00d6ce to your computer and use it in GitHub Desktop.

Pytest 3.1.4.dev106+g10ded399 (2017-07-26)

Bug Fixes

  • Set stdin to a closed PIPE in pytester.py.Testdir.popen() for avoid unwanted interactive pdb (#2023)
  • Add missing encoding attribute to sys.std* streams when using capsys capture mode. (#2375)
  • Fix terminal color changing to black on Windows if colorama is imported in a conftest.py file. (#2510)
  • Fix line number when reporting summary of skipped tests. (#2548)
  • capture: ensure that EncodedFile.name is a string. (#2555)
  • The options `--fixtures and `--fixtures-per-test will now keep indentation within docstrings. (#2574)
  • doctests line numbers are now reported correctly, fixing pytest-sugar#122. (#2610)

Improved Documentation

  • Clarify pytest_configure hook call order. (#2539)
  • Extend documentation for testing plugin code with the pytester plugin. (#971)

Trivial/Internal Changes

  • Update help message for --strict to make it clear it only deals with unregistered markers, not warnings. (#2444)
  • Renamed the utility function _pytest.compat._escape_strings to _ascii_escaped to better communicate the function's purpose. (#2533)
  • Improve error message for CollectError with skip/skipif. (#2546)
  • Emit warning about yield tests being deprecated only once per generator. (#2562)
  • Ensure final collected line doesn't include artifacts of previous write. (#2571)
  • Fixed all flake8 errors and warnings. (#2581)
  • Added fix-lint tox environment to run automatic pep8 fixes on the code. (#2582)
  • Show multiple issue links in CHANGELOG entries. (#2620)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment