summaryrefslogtreecommitdiff
path: root/_pytest/compat.py
AgeCommit message (Collapse)Author
2017-09-06Merge pull request #2700 from nicoddemus/staticmethods-fixturesRonny Pfannschmidt
Allow tests declared as @staticmethod to use fixtures
2017-09-05Add comment about possible future refactoring in the fixture mechanismBruno Oliveira
2017-08-23`compat.safe_getattr` now catches OutcomeExceptions tooKirill Pinchuk
2017-08-17Allow tests declared as @staticmethod to use fixturesBruno Oliveira
Fix #2699
2017-07-20Merge branch 'master' into featuresBruno Oliveira
2017-07-20Fix: do not load hypothesis during test_logging_initialized_in_testBruno Oliveira
A recent release seem to have added a "logging" import to the top-level, which breaks test_logging_initialized_in_test
2017-07-20Merge pull request #2578 from Llandy3d/2375Floris Bruynooghe
Provides encoding attribute on CaptureIO
2017-07-17Merge branch 'fix-flake8-issues' into featuresBruno Oliveira
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 E271 flake8 errorsAndras Tim
multiple spaces after keyword
2017-07-17Fixed E265 flake8 errorsAndras Tim
block comment should start with ‘# ‘
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 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-16Provides encoding attribute on CaptureIOLlandy Riveron Del Risco
Fix #2375
2017-07-10Merge remote-tracking branch 'upstream/master' into featuresBruno Oliveira
2017-07-10replace all _escape_strings to _ascii_escapedJohn Still
2017-06-15Implement suggestions from code review.Kale Kundert
- Avoid importing numpy unless necessary. - Mention numpy arrays and dictionaries in the docs. - Add numpy to the list of tox dependencies. - Don't unnecessarily copy arrays or allocate empty space for them. - Use code from compat.py rather than writing py2/3 versions of things myself. - Avoid reimplementing __repr__ for built-in types. - Add an option to consider NaN == NaN, because sometimes people use NaN to mean "missing data".
2017-05-26Add UnicodeWarning for unicode warnings in Python2wanghui
2017-05-03Merge remote-tracking branch 'upstream/master' into merge-master-into-featuresBruno Oliveira
# Conflicts: # _pytest/capture.py # _pytest/compat.py # _pytest/python.py # testing/python/collect.py # testing/test_mark.py
2017-04-12Fix #2343: Replace version checks by constants.Michael Howitz
This way they do not have to be recomputed at runtime.
2017-03-29Convert using utf-8 instead of ascii in safe_str()Bruno Oliveira
This way we don't lose information and the returned string is ascii-compatible anyway
2017-03-29Fix exception formatting while importing test modulesBruno Oliveira
Fix #2336
2017-03-28fix all singular internal module imports and add a test for themRonny Pfannschmidt
2017-03-28prepare a own pytest.collect fake module in oder to remove the nested ↵Ronny Pfannschmidt
builtin namespaces
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-23Make capsys more like stdio streams in python3. Resolves #1407.Anthony Sottile
2017-01-19get_real_func: use saferepr when formatting the error messageRonny Pfannschmidt
2017-01-19fixes #2208 by introducing a iteration limitRonny Pfannschmidt
2016-12-27Merge branch 'master' into merge-master-into-featuresBruno Oliveira
2016-12-27Merge pull request #2136 from hroncok/i2132Bruno Oliveira
Tests: Check for ModuleNotFoundError on Python 3.6+
2016-12-27Move module error compatibility code to _pytest.compatBruno Oliveira
2016-12-13Avoid importing asyncio directly because that in turn initializes logging (#8)Bruno Oliveira
2016-12-11Use inspect to properly detect generators. Fixes #2129Dmitry Malinovsky
2016-11-30Add missing `__test__` check for test discovery.Luke Murphy
2016-10-20Merge remote-tracking branch 'upstream/master' into merge-master-into-featuresBruno Oliveira
2016-10-12Handle import errors with non-ascii messages when importing pluginsBruno Oliveira
Fix #1998
2016-09-08mark: fix introduced linting errorRonny Pfannschmidt
2016-09-08Mark: fix python 3 compatibilityRonny Pfannschmidt
2016-08-17Remove obsolete docstringBruno Oliveira
2016-08-17Move internal _is_unittest_unexpected_success_a_failure to "compat" moduleBruno Oliveira
Fix #1815
2016-07-09split most fixture related code into own pluginRonny Pfannschmidt