summaryrefslogtreecommitdiff
path: root/testing/code
AgeCommit message (Collapse)Author
2018-01-09Replace py.std with stdlib importsAnthony Sottile
2017-12-22Remove unnecessary `# noqa` comments.Anthony Sottile
Commit automated with https://github.com/asottile/yesqa
2017-12-11remove _ast reference from test cases as wellSrinivas Reddy Thatiparthy
2017-11-10Merge remote-tracking branch 'upstream/master' into merge-master-into-featuresBruno Oliveira
2017-11-04Fix linting E722: do not use bare exceptBruno Oliveira
2017-11-04Fix linting E741: ambiguous variable nameBruno Oliveira
2017-10-10Remove unused importhugovk
2017-10-10Remove code for unsupported Python versionshugovk
2017-09-12Remove xfail mark from passing test in py26Bruno Oliveira
2017-08-30fixes #2731 ReprFuncArgs with mixed unicode and utf-8 argsFernando Macedo
2017-07-29Support PEP-415's Exception.__suppress_context__Jordan Moldow
PEP-415 states that `exception.__context__` should be suppressed in traceback outputs, if `exception.__suppress_context__` is `True`. Now if a ``raise exception from None`` is caught by pytest, pytest will no longer chain the context in the test report. The algorithm in `FormattedExcinfo` now better matches the one in `traceback.TracebackException`. `Exception.__suppress_context__` is available in all of the versions of Python 3 that are supported by pytest. Fixes #2631.
2017-07-20Add "fix-lint" tox environment to fix linting errorsBruno Oliveira
2017-07-17Fixed E701 flake8 errorsAndras Tim
multiple statements on one line (colon)
2017-07-17Fixed E402 flake8 errorsAndras Tim
module level import not at top of file
2017-07-17Fixed E303 flake8 errorsAndras Tim
too many blank lines (3)
2017-07-17Fixed E302 flake8 errorsAndras Tim
expected 2 blank lines, found 0
2017-07-17Fixed E301 flake8 errorsAndras Tim
expected 1 blank line, found 0
2017-07-17Fixed E265 flake8 errorsAndras Tim
block comment should start with ‘# ‘
2017-07-17Fixed E261 flake8 errorsAndras Tim
at least two spaces before inline comment
2017-07-17Fixed E231 flake8 errorsAndras Tim
missing whitespace after ‘,’, ‘;’, or ‘:’
2017-07-17Fixed E226 flake8 errorsAndras Tim
missing whitespace around arithmetic operator
2017-07-17Fixed E225 flake8 errorsAndras Tim
missing whitespace around operator
2017-07-17Fixed E221 flake8 errorsAndras Tim
multiple spaces before operator
2017-07-17Fixed E202 flake8 errorsAndras Tim
whitespace before ‘)’
2017-07-17Fixed E131 flake8 errorsAndras Tim
continuation line unaligned for hanging indent
2017-07-17Fixed E128 flake8 errorsAndras Tim
continuation line under-indented for visual indent
2017-07-17Fixed E127 flake8 errorsAndras Tim
continuation line over-indented for visual indent
2017-07-17Fixed E126 flake8 errorsAndras Tim
continuation line over-indented for hanging indent
2017-07-17Fixed E124 flake8 errorsAndras Tim
closing bracket does not match visual indentation
2017-07-17Fixed flake8 warningsAndras Tim
W191 indentation contains tabs W292 no newline at end of file W293 blank line contains whitespace W391 blank line at end of file
2017-06-09Fix internal error when trying to detect the start of a recursive traceback.Bruno Oliveira
Fix #2486
2017-06-07Fix internal error with recursive tracebacks with that frames contain ↵Bruno Oliveira
objects that can't be compared Fix #2459
2017-03-16Fix test in py26 that expected a floor division error messageBruno Oliveira
2017-03-16Add __future__ imports to all pytest modulesBruno Oliveira
This prevents silly errors from creeping in Python 2 when testing in Python 3
2017-02-16New-style classes implemented for python 2.7 - #2147Michal Wajszczuk
2016-11-20Fix test_excinfo_getstatement that broke because of whitespace changesBruno Oliveira
2016-11-20Fix flake8 E305 and E306 errorsBruno Oliveira
These errors started to appear with flake8-3.1.1, while they don't appear with version 3.1.0 (weird).
2016-11-03Properly handle exceptions in multiprocessing tasksBruno Oliveira
Fix #1984
2016-08-01Fix broken test in py3kBruno Oliveira
2016-08-01Highlight the path of file location in error reportsatoru
So that it's more obvious when we need to copy the file path.
2016-07-15Remove assertion reinterpretationFloris Bruynooghe
The assertion reinterpretation is an old backwards compatibility mode which was no longer being maintained on feature-parity with the assertion rewriting mode. It was also responsible for some dubious patching of builtins and test with side-effects would suddenly start passing. Since re-writing has been the default for a long time and plugins are now also re-written it is time to retire reinterpretation.
2016-07-11Replace all usages of "pytest_funcarg__" for @pytest.fixtureBruno Oliveira
2016-07-11Deprecate yield testsBruno Oliveira
Closes #16 Closes #1324
2016-07-06merge from master to featuresRonny Pfannschmidt
2016-06-30remove unsupported python versions from code/source xfailRonny Pfannschmidt
2016-06-24issue1625, name getfuncargvalue to getfixturevalueTom Viner
2016-06-22merge master into featuresRonny Pfannschmidt
2016-06-08[exception handling] Fix case the current working directory (CWD) gets ↵marscher
deleted during testing. Fixes #1235.
2016-05-13merge next chunk from master and fix changelog linting issueRonny Pfannschmidt
2016-04-20Use a callable __tracebackhide__ for filteringFlorian Bruhin
While this leads to slightly more complicated user code for the common case (checking if the exception is of a given type) it's easier to implement and more flexible.