gionniboy / howisresolved

how is resolved a given domain from differents nameservers
BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

PyUp Scheduled biweekly dependency update for week 39 #70

Closed pyup-bot closed 5 years ago

pyup-bot commented 5 years ago

Update certifi from 2018.4.16 to 2018.8.24.

The bot wasn't able to find a changelog for this release. Got an idea?

Links - PyPI: https://pypi.org/project/certifi - Homepage: http://certifi.io/

Update idna from 2.6 to 2.7.

Changelog ### 2.7 ``` ++++++++++++++++ - Update to Unicode 10.0.0. - No longer accepts dot-prefixed domains (e.g. ".example") as valid. This is to be more conformant with the UTS 46 spec. Users should strip dot prefixes from domains before processing. ```
Links - PyPI: https://pypi.org/project/idna - Changelog: https://pyup.io/changelogs/idna/ - Repo: https://github.com/kjd/idna

Update requests from 2.18.4 to 2.19.1.

Changelog ### 2.19.1 ``` +++++++++++++++++++ **Bugfixes** - Fixed issue where status_codes.py's ``init`` function failed trying to append to a ``__doc__`` value of ``None``. ``` ### 2.19.0 ``` +++++++++++++++++++ **Improvements** - Warn user about possible slowdown when using cryptography version < 1.3.4 - Check for invalid host in proxy URL, before forwarding request to adapter. - Fragments are now properly maintained across redirects. (RFC7231 7.1.2) - Removed use of cgi module to expedite library load time. - Added support for SHA-256 and SHA-512 digest auth algorithms. - Minor performance improvement to ``Request.content``. - Migrate to using collections.abc for 3.7 compatibility. **Bugfixes** - Parsing empty ``Link`` headers with ``parse_header_links()`` no longer return one bogus entry. - Fixed issue where loading the default certificate bundle from a zip archive would raise an ``IOError``. - Fixed issue with unexpected ``ImportError`` on windows system which do not support ``winreg`` module. - DNS resolution in proxy bypass no longer includes the username and password in the request. This also fixes the issue of DNS queries failing on macOS. - Properly normalize adapter prefixes for url comparison. - Passing ``None`` as a file pointer to the ``files`` param no longer raises an exception. - Calling ``copy`` on a ``RequestsCookieJar`` will now preserve the cookie policy correctly. **Dependencies** - We now support idna v2.7. - We now support urllib3 v1.23. ```
Links - PyPI: https://pypi.org/project/requests - Changelog: https://pyup.io/changelogs/requests/ - Homepage: http://python-requests.org

Update astroid from 1.6.4 to 2.0.4.

Changelog ### 2.0.4 ``` ============================ Release Date: 2018-08-10 * Make sure that assign nodes can find ``yield`` statements in their values Close PyCQA/pylint2400 ``` ### 2.0.3 ``` ============================ Release Date: 2018-08-08 * The environment markers for PyPy were invalid. ``` ### 2.0.2 ``` ============================ Release Date: 2018-08-01 * Stop repeat inference attempt causing a RuntimeError in Python3.7 Close PyCQA/pylint2317 * infer_call_result can raise InferenceError so make sure to handle that for the call sites where it is used infer_call_result started recently to raise InferenceError for objects for which it could not find any returns. Previously it was silently raising a StopIteration, which was especially leaking when calling builtin methods. Since it is after all an inference method, it is expected that it could raise an InferenceError rather than returning nothing. Close PyCQA/pylint2350 ``` ### 2.0.1 ``` ============================ Release Date: 2018-07-19 * Released to clear an old wheel package on PyPI ``` ### 2.0 ``` ========================== Release Date: 2018-07-15 * String representation of nodes takes in account precedence and associativity rules of operators. * Fix loading files with `modutils.load_from_module` when the path that contains it in `sys.path` is a symlink and the file is contained in a symlinked folder. Close 583 * Reworking of the numpy brain dealing with numerictypes (use of inspect module to determine the class hierarchy of numpy.core.numerictypes module) Close PyCQA/pylint2140 * Added inference support for starred nodes in for loops Close 146 * Support unpacking for dicts in assignments Close 268 * Add support for inferring functools.partial Close 125 * Inference support for `dict.fromkeys` Close 110 * `int()` builtin is inferred as returning integers. Close 150 * `str()` builtin is inferred as returning strings. Close 148 * DescriptorBoundMethod has the correct number of arguments defined. * Improvement of the numpy numeric types definition. Close PyCQA/pylint1971 * Subclasses of *property* are now interpreted as properties Close PyCQA/pylint1601 * AsStringRegexpPredicate has been removed. Use transform predicates instead of it. * Switched to using typed_ast for getting access to type comments As a side effect of this change, some nodes gained a new `type_annotation` attribute, which, if the type comments were correctly parsed, should contain a node object with the corresponding objects from the type comment. * typing.X[...] and typing.NewType are inferred as classes instead of instances. * Module.__path__ is now a list It used to be a string containing the path, but it doesn't reflect the situation on Python, where it is actually a list. * Fix a bug with namespace package's __path__ attribute. Close 528 * Added brain tips for random.sample Part of PyCQA/pylint811 * Add brain tip for `issubclass` builtin Close 101. * Fix submodule imports from six Close PyCQA/pylint1640 * Fix missing __module__ and __qualname__ from class definition locals Close PYCQA/pylint1753 * Fix a crash when __annotations__ access a parent's __init__ that does not have arguments Close 473 * Fix multiple objects sharing the same InferenceContext.path causing uninferable results Close 483 * Fix improper modification of col_offset, lineno upon inference of builtin functions Close PyCQA/pylint1839 * Subprocess.Popen brain now knows of the args member Close PyCQA/pylint1860 * add move_to_end method to collections.OrderedDict brain Close PyCQA/pylint1872 * Include new hashlib classes added in python 3.6 * Fix RecursionError for augmented assign Close 437, 447, 313, PyCQA/pylint1642, PyCQA/pylint1805, PyCQA/pylint1854, PyCQA/pylint1452 * Add missing attrs special attribute Close PyCQA/pylint1884 * Inference now understands the 'isinstance' builtin Close 98 * Stop duplicate nodes with the same key values from appearing in dictionaries from dictionary unpacking. Close PyCQA/pylint1843 * Fix ``contextlib.contextmanager`` inference for nested context managers Close 1699 * Implement inference for len builtin Close 112 * Add qname method to Super object preventing potential errors in upstream pylint Close 533 * Stop astroid from getting stuck in an infinite loop if a function shares its name with its decorator Close 375 * Fix issue with inherited __call__ improperly inferencing self Close PyCQA/pylint2199 * Fix __call__ precedence for classes with custom metaclasses Close PyCQA/pylint2159 * Limit the maximum amount of interable result in an NodeNG.infer() call to 100 by default for performance issues with variables with large amounts of possible values. The max inferable value can be tuned by setting the `max_inferable_values` flag on astroid.MANAGER. ```
Links - PyPI: https://pypi.org/project/astroid - Changelog: https://pyup.io/changelogs/astroid/ - Repo: https://github.com/PyCQA/astroid

Update attrs from 18.1.0 to 18.2.0.

Changelog ### 18.2.0 ``` ------------------- Deprecations ^^^^^^^^^^^^ - Comparing subclasses using ``<``, ``>``, ``<=``, and ``>=`` is now deprecated. The docs always claimed that instances are only compared if the types are identical, so this is a first step to conform to the docs. Equality operators (``==`` and ``!=``) were always strict in this regard. `394 <https://github.com/python-attrs/attrs/issues/394>`_ Changes ^^^^^^^ - ``attrs`` now ships its own `PEP 484 <https://www.python.org/dev/peps/pep-0484/>`_ type hints. Together with `mypy <http://mypy-lang.org>`_'s ``attrs`` plugin, you've got all you need for writing statically typed code in both Python 2 and 3! At that occasion, we've also added `narrative docs <https://www.attrs.org/en/stable/types.html>`_ about type annotations in ``attrs``. `238 <https://github.com/python-attrs/attrs/issues/238>`_ - Added *kw_only* arguments to ``attr.ib`` and ``attr.s``, and a corresponding *kw_only* attribute to ``attr.Attribute``. This change makes it possible to have a generated ``__init__`` with keyword-only arguments on Python 3, relaxing the required ordering of default and non-default valued attributes. `281 <https://github.com/python-attrs/attrs/issues/281>`_, `411 <https://github.com/python-attrs/attrs/issues/411>`_ - The test suite now runs with ``hypothesis.HealthCheck.too_slow`` disabled to prevent CI breakage on slower computers. `364 <https://github.com/python-attrs/attrs/issues/364>`_, `396 <https://github.com/python-attrs/attrs/issues/396>`_ - ``attr.validators.in_()`` now raises a ``ValueError`` with a useful message even if the options are a string and the value is not a string. `383 <https://github.com/python-attrs/attrs/issues/383>`_ - ``attr.asdict()`` now properly handles deeply nested lists and dictionaries. `395 <https://github.com/python-attrs/attrs/issues/395>`_ - Added ``attr.converters.default_if_none()`` that allows to replace ``None`` values in attributes. For example ``attr.ib(converter=default_if_none(""))`` replaces ``None`` by empty strings. `400 <https://github.com/python-attrs/attrs/issues/400>`_, `414 <https://github.com/python-attrs/attrs/issues/414>`_ - Fixed a reference leak where the original class would remain live after being replaced when ``slots=True`` is set. `407 <https://github.com/python-attrs/attrs/issues/407>`_ - Slotted classes can now be made weakly referenceable by passing ``attr.s(weakref_slot=True)``. `420 <https://github.com/python-attrs/attrs/issues/420>`_ - Added *cache_hash* option to ``attr.s`` which causes the hash code to be computed once and stored on the object. `425 <https://github.com/python-attrs/attrs/issues/425>`_ - Attributes can be named ``property`` and ``itemgetter`` now. `430 <https://github.com/python-attrs/attrs/issues/430>`_ - It is now possible to override a base class' class variable using only class annotations. `431 <https://github.com/python-attrs/attrs/issues/431>`_ ---- ```
Links - PyPI: https://pypi.org/project/attrs - Changelog: https://pyup.io/changelogs/attrs/ - Homepage: https://www.attrs.org/

Update autopep8 from 1.3.5 to 1.4.

Changelog ### 1.4 ``` * new feature: add W605 fixed method * new feature: add E252 fixed method (Thanks to patch by gmbnomis) * change: W690 (only use autopep8) is DEFAULT_IGNORE. * fix bugs * 415, 399, 410, 392 * 386 (Thanks to patch by Hnasar) ```
Links - PyPI: https://pypi.org/project/autopep8 - Changelog: https://pyup.io/changelogs/autopep8/ - Repo: https://github.com/hhatto/autopep8

Update more-itertools from 4.2.0 to 4.3.0.

Changelog
Links - PyPI: https://pypi.org/project/more-itertools - Changelog: https://pyup.io/changelogs/more-itertools/ - Repo: https://github.com/erikrose/more-itertools - Docs: https://pythonhosted.org/more-itertools/

Update pluggy from 0.6.0 to 0.7.1.

The bot wasn't able to find a changelog for this release. Got an idea?

Links - PyPI: https://pypi.org/project/pluggy - Changelog: https://pyup.io/changelogs/pluggy/ - Repo: https://github.com/pytest-dev/pluggy

Update py from 1.5.3 to 1.6.0.

Changelog ### 1.6.0 ``` ================== - add ``TerminalWriter.width_of_current_line`` (i18n version of ``TerminalWriter.chars_on_current_line``), a read-only property that tracks how wide the current line is, attempting to take into account international characters in the calculation. ``` ### 1.5.4 ``` ================== - fix pytest-dev/pytest3451: don't make assumptions about fs case sensitivity in ``make_numbered_dir``. ```
Links - PyPI: https://pypi.org/project/py - Changelog: https://pyup.io/changelogs/py/ - Docs: http://py.readthedocs.io/

Update pylint from 1.9.1 to 2.1.1.

Changelog ### 2.1 ``` ========================= Release date: 2018-08-01 * `trailing-comma-tuple` gets emitted for ``yield`` statements as well. Close 2363 * Get only the arguments of the scope function for `redefined-argument-from-local` Close 2364 * Add a check `misplaced-format-function` which is emitted if format function is used on non str object. Close 2200 * `chain.from_iterable` no longer emits `dict-{}-not-iterating` when dealing with dict values and keys * Demote the `try-except-raise` message from an error to a warning (E0705 -> W0706) Close 2323 * Correctly handle the new name of the Python implementation of the `abc` module. Close PyCQA/astroid2288 * Modules with `__getattr__` are exempted by default from `no-member` There's no easy way to figure out if a module has a particular member when the said module uses `__getattr__`, which is a new addition to Python 3.7. Instead we assume the safe thing to do, in the same way we do for classes, and skip those modules from checking. Close 2331 * Fix a false positive `invalid name` message when method or attribute name is longer then 30 characters. Close 2047 * Include the type of the next branch in `no-else-return` Close 2295 * Fix inconsistent behaviour for bad-continuation on first line of file Close 2281 * Fix not being able to disable certain messages on the last line through the global disable option Close 2278 * Don't emit `useless-return` when we have a single statement that is the return itself We still want to be explicit when a function is supposed to return an optional value; even though `pass` could still work, it's not explicit enough and the function might look like it's missing an implementation. Close 2300 * Fix false-positive undefined-variable for self referential class name in lamdbas Close 704 * Don't crash when `pylint` is unable to infer the value of an argument to `next()` Close 2316 * Don't emit `not-an-iterable` when dealing with async iterators. But do emit it when using the usual iteration protocol against async iterators. Close 2311 * Can specify a default docstring type for when the check cannot guess the type Close 1169 ``` ### 2.0 ``` ========================= Release date: 2018-07-15 * `try-except-raise` should not be emitted if there are any parent exception class handlers. Close 2284 * `trailing-comma-tuple` can be emitted for `return` statements as well. Close 2269 * Fix a false positive ``inconsistent-return-statements`` message when exception is raised inside an else statement. Close 1782 * `ImportFrom` nodes correctly use the full name for the import sorting checks. Close 2181 * [].extend and similar builtin operations don't emit `dict-*-not-iterating` with the Python 3 porting checker Close 2187 * Add a check `consider-using-dict-comprehension` which is emitted if for dict initialization the old style with list comprehensions is used. * Add a check `consider-using-set-comprehension` which is emitted if for set initialization the old style with list comprehensions is used. * `logging-not-lazy` is emitted whenever pylint infers that a string is built with addition Close 2193 * Add a check `chained-comparison` which is emitted if a boolean operation can be simplified by chaining some of its operations. e.g "a < b and b < c", can be simplified as "a < b < c". Close 2032 * Add a check `consider-using-in` for comparisons of a variable against multiple values with "==" and "or"s instead of checking if the variable is contained "in" a tuple of those values. * `in` is considered iterating context for some of the Python 3 porting checkers Close 2186 * Add `--ignore-none` flag to control if pylint should warn about `no-member` where the owner is None * Fix a false positive related to `too-many-arguments` and bounded `__get__` methods Close 2172 * `mcs` as the first parameter of metaclass's `__new__` method was replaced by `cls` Close 2028 * `assignment-from-no-return` considers methods as well. Close 2081 * Support typing.TYPE_CHECKING for *unused-import* errors Close 1948 * Inferred classes at a function level no longer emit `invalid-name` when they don't respect the variable regular expression Close 1049 * Added basic support for postponed evaluation of function annotations. Close 2069 * Fix a bug with `missing-kwoa` and variadics parameters Close 1111 * `simplifiable-if-statement` takes in account only when assigning to same targets Close 1984 * Make ``len-as-condition`` test more cases, such as ``len() < 1`` or ``len <= 0`` * Fix false-positive ``line-too-long`` message emission for commented line at the end of a module Close 1950 * Fix false-positive ``bad-continuation`` for with statements Close 461 * Don't warn about `stop-iteration-return` when using `next()` over `itertools.count` Close 2158 * Add a check `consider-using-get` for unidiomatic usage of value/default-retrieval for a key from a dictionary Close 2076 * invalid-slice-index is not emitted when the slice is used as index for a complex object. We only use a handful of known objects (list, set and friends) to figure out if we should emit invalid-slice-index when the slice is used to subscript an object. * Don't emit `unused-import` anymore for typing imports used in type comments. * Add a new check 'useless-import-alias'. Close 2052 * Add `comparison-with-callable` to warn for comparison with bare callable, without calling it. Close 2082 * Don't warn for ``missing-type-doc`` and/or ``missing-return-type-doc``, if type annotations exist on the function signature for a parameter and/or return type. Close 2083 * Add `--exit-zero` option for continuous integration scripts to more easily call Pylint in environments that abort when a program returns a non-zero (error) status code. Close 2042 * Warn if the first argument of an instance/ class method gets assigned Close 977 * New check `comparison-with-itself` to check comparison between same value. Close 2051 * Add a new warning, 'logging-fstring-interpolation', emitted when f-string is used within logging function calls. Close 1998 * Don't show 'useless-super-delegation' if the subclass method has different type annotations. Close 1923 * Add `unhashable-dict-key` check. Closes 586 * Don't warn that a global variable is unused if it is defined by an import Close 1453 * Skip wildcard import check for `__init__.py`. Close 2026 * The Python 3 porting mode can now run with Python 3 as well. * `too-few-public-methods` is not emitted for dataclasses. Close 1793 * New verbose mode option, enabled with `--verbose` command line flag, to display of extra non-checker-related output. It is disabled by default. Close 1863 * `undefined-loop-variable` takes in consideration non-empty iterred objects before emitting Close 2039 * Add support for numpydoc optional return value names. Close 2030 * `singleton-comparison` accounts for negative checks Close 2037 * Add a check `consider-using-in` for comparisons of a variable against multiple values with "==" and "or"s instead of checking if the variable is contained "in" a tuple of those values. Close 1977 * defaultdict and subclasses of dict are now handled for dict-iter-* checks Close 2005 * `logging-format-interpolation` also emits when f-strings are used instead of % syntax. Close 1788 * Don't trigger misplaced-bare-raise when the raise is in a finally clause Close 1924 * Add a new check, `possibly-unused-variable`. This is similar to `unused-variable`, the only difference is that it is emitted when we detect a locals() call in the scope of the unused variable. The `locals()` call could potentially use the said variable, by consuming all values that are present up to the point of the call. This new check allows to disable this error when the user intentionally uses `locals()` to consume everything. Close 1909. * `no-else-return` accounts for multiple cases The check was a bit overrestrictive because we were checking for return nodes in the .orelse node. At that point though the if statement can be refactored to not have the orelse. This improves the detection of other cases, for instance it now detects TryExcept nodes that are part of the .else branch. Close 1852 * Added two new checks, `invalid-envvar-value` and `invalid-envvar-default`. The former is trigger whenever pylint detects that environment variable manipulation functions uses a different type than strings, while the latter is emitted whenever the said functions are using a default variable of different type than expected. * Add a check `consider-using-join` for concatenation of strings using str.join(sequence) Close 1952 * Add a check `consider-swap-variables` for swapping variables with tuple unpacking Close 1922 * Add new checker `try-except-raise` that warns the user if an except handler block has a ``raise`` statement as its first operator. The warning is shown when there is a bare raise statement, effectively re-raising the exception that was caught or the type of the exception being raised is the same as the one being handled. * Don't crash on invalid strings when checking for `logging-format-interpolation` Close 1944 * Exempt `__doc__` from triggering a `redefined-builtin` `__doc__` can be used to specify a docstring for a module without passing it as a first-statement string. * Fix false positive bad-whitespace from function arguments with default values and annotations Close 1831 * Fix stop-iteration-return false positive when next builtin has a default value in a generator Close 1830 * Fix emission of false positive ``no-member`` message for class with "private" attributes whose name is mangled. Close 1643 * Fixed a crash which occurred when `Uninferable` wasn't properly handled in `stop-iteration-return` Close 1779 * Use the proper node to get the name for redefined functions (1792) Close 1774 * Don't crash when encountering bare raises while checking inconsistent returns Close 1773 * Fix a false positive ``inconsistent-return-statements`` message when if statement is inside try/except. Close 1770 * Fix a false positive ``inconsistent-return-statements`` message when while loop are used. Close 1772 * Correct column number for whitespace conventions. Previously the column was stuck at 0 Close 1649 * Fix ``unused-argument`` false positives with overshadowed variable in dictionary comprehension. Close 1731 * Fix false positive ``inconsistent-return-statements`` message when never returning functions are used (i.e sys.exit for example). Close 1771 * Fix error when checking if function is exception, as in ``bad-exception-context``. * Fix false positive ``inconsistent-return-statements`` message when a function is defined under an if statement. Close 1794 * New ``useless-return`` message when function or method ends with a "return" or "return None" statement and this is the only return statement in the body. * Fix false positive ``inconsistent-return-statements`` message by avoiding useless exception inference if the exception is not handled. Close 1794 (second part) * Fix bad thread instantiation check when target function is provided in args. Close 1840 * Fixed false positive when a numpy Attributes section follows a Parameters section Close 1867 * Fix incorrect file path when file absolute path contains multiple ``path_strip_prefix`` strings. Close 1120 * Fix false positive undefined-variable for lambda argument in class definitions Close 1824 * Add of a new checker that warns the user if some messages are enabled or disabled by id instead of symbol. Close 1599 * Suppress false-positive ``not-callable`` messages from certain staticmethod descriptors Close 1699 * Fix indentation handling with tabs Close 1148 * Fix false-positive ``bad-continuation`` error Close 638 * Fix false positive unused-variable in lambda default arguments Close 1921 Close 1552 Close 1099 Close 210 * Updated the default report format to include paths that can be clicked on in some terminals (e.g. iTerm). * Fix inline def behavior with ``too-many-statements`` checker Close 1978 * Fix `KeyError` raised when using docparams and NotImplementedError is documented. Close 2102 * Fix 'method-hidden' raised when assigning to a property or data descriptor. * Fix emitting ``useless-super-delegation`` when changing the default value of keyword arguments. Close 2022 * Expand ignored-argument-names include starred arguments and keyword arguments Close 2214 * Fix false-postive undefined-variable in nested lambda Close 760 * Fix false-positive ``bad-whitespace`` message for typing annoatations with ellipses in them Close 1992 ```
Links - PyPI: https://pypi.org/project/pylint - Changelog: https://pyup.io/changelogs/pylint/ - Repo: https://github.com/PyCQA/pylint

Update pytest-cov from 2.5.1 to 2.6.0.

Changelog ### 2.6.0 ``` ------------------ * Dropped support for Python < 3.4, Pytest < 3.5 and Coverage < 4.4. * Fixed some documentation formatting. Contributed by Jean Jordaan and Julian. * Added an example with ``addopts`` in documentation. Contributed by Samuel Giffard in `195 <https://github.com/pytest-dev/pytest-cov/pull/195>`_. * Fixed ``TypeError: 'NoneType' object is not iterable`` in certain xdist configurations. Contributed by Jeremy Bowman in `213 <https://github.com/pytest-dev/pytest-cov/pull/213>`_. * Added a ``no_cover`` marker and fixture. Fixes `78 <https://github.com/pytest-dev/pytest-cov/issues/78>`_. * Fixed broken ``no_cover`` check when running doctests. Contributed by Terence Honles in `200 <https://github.com/pytest-dev/pytest-cov/pull/200>`_. * Fixed various issues with path normalization in reports (when combining coverage data from parallel mode). Fixes `130 <https://github.com/pytest-dev/pytest-cov/issues/161>`_. Contributed by Ryan Hiebert & Ionel Cristian Mărieș in `178 <https://github.com/pytest-dev/pytest-cov/pull/178>`_. * Report generation failures don't raise exceptions anymore. A warning will be logged instead. Fixes `161 <https://github.com/pytest-dev/pytest-cov/issues/161>`_. * Fixed multiprocessing issue on Windows (empty env vars are not passed). Fixes `165 <https://github.com/pytest-dev/pytest-cov/issues/165>`_. ```
Links - PyPI: https://pypi.org/project/pytest-cov - Changelog: https://pyup.io/changelogs/pytest-cov/ - Repo: https://github.com/pytest-dev/pytest-cov

Update pytest from 3.6.1 to 3.8.1.

Changelog ### 3.8.1 ``` ========================= Bug Fixes --------- - `3286 <https://github.com/pytest-dev/pytest/issues/3286>`_: ``.pytest_cache`` directory is now automatically ignored by Git. Users who would like to contribute a solution for other SCMs please consult/comment on this issue. - `3749 <https://github.com/pytest-dev/pytest/issues/3749>`_: Fix the following error during collection of tests inside packages:: TypeError: object of type 'Package' has no len() - `3941 <https://github.com/pytest-dev/pytest/issues/3941>`_: Fix bug where indirect parametrization would consider the scope of all fixtures used by the test function to determine the parametrization scope, and not only the scope of the fixtures being parametrized. - `3973 <https://github.com/pytest-dev/pytest/issues/3973>`_: Fix crash of the assertion rewriter if a test changed the current working directory without restoring it afterwards. - `3998 <https://github.com/pytest-dev/pytest/issues/3998>`_: Fix issue that prevented some caplog properties (for example ``record_tuples``) from being available when entering the debugger with ``--pdb``. - `3999 <https://github.com/pytest-dev/pytest/issues/3999>`_: Fix ``UnicodeDecodeError`` in python2.x when a class returns a non-ascii binary ``__repr__`` in an assertion which also contains non-ascii text. Improved Documentation ---------------------- - `3996 <https://github.com/pytest-dev/pytest/issues/3996>`_: New `Deprecations and Removals <https://docs.pytest.org/en/latest/deprecations.html>`_ page shows all currently deprecated features, the rationale to do so, and alternatives to update your code. It also list features removed from pytest in past major releases to help those with ancient pytest versions to upgrade. Trivial/Internal Changes ------------------------ - `3955 <https://github.com/pytest-dev/pytest/issues/3955>`_: Improve pre-commit detection for changelog filenames - `3975 <https://github.com/pytest-dev/pytest/issues/3975>`_: Remove legacy code around im_func as that was python2 only ``` ### 3.8.0 ``` ========================= Deprecations and Removals ------------------------- - `2452 <https://github.com/pytest-dev/pytest/issues/2452>`_: ``Config.warn`` and ``Node.warn`` have been deprecated, see `<https://docs.pytest.org/en/latest/deprecations.htmlconfig-warn-and-node-warn>`_ for rationale and examples. - `3936 <https://github.com/pytest-dev/pytest/issues/3936>`_: ``pytest.mark.filterwarnings`` second parameter is no longer regex-escaped, making it possible to actually use regular expressions to check the warning message. **Note**: regex-escaping the match string was an implementation oversight that might break test suites which depend on the old behavior. Features -------- - `2452 <https://github.com/pytest-dev/pytest/issues/2452>`_: Internal pytest warnings are now issued using the standard ``warnings`` module, making it possible to use the standard warnings filters to manage those warnings. This introduces ``PytestWarning``, ``PytestDeprecationWarning`` and ``RemovedInPytest4Warning`` warning types as part of the public API. Consult `the documentation <https://docs.pytest.org/en/latest/warnings.htmlinternal-pytest-warnings>`_ for more info. - `2908 <https://github.com/pytest-dev/pytest/issues/2908>`_: ``DeprecationWarning`` and ``PendingDeprecationWarning`` are now shown by default if no other warning filter is configured. This makes pytest more compliant with `PEP-0506 <https://www.python.org/dev/peps/pep-0565/recommended-filter-settings-for-test-runners>`_. See `the docs <https://docs.pytest.org/en/latest/warnings.htmldeprecationwarning-and-pendingdeprecationwarning>`_ for more info. - `3251 <https://github.com/pytest-dev/pytest/issues/3251>`_: Warnings are now captured and displayed during test collection. - `3784 <https://github.com/pytest-dev/pytest/issues/3784>`_: ``PYTEST_DISABLE_PLUGIN_AUTOLOAD`` environment variable disables plugin auto-loading when set. - `3829 <https://github.com/pytest-dev/pytest/issues/3829>`_: Added the ``count`` option to ``console_output_style`` to enable displaying the progress as a count instead of a percentage. - `3837 <https://github.com/pytest-dev/pytest/issues/3837>`_: Added support for 'xfailed' and 'xpassed' outcomes to the ``pytester.RunResult.assert_outcomes`` signature. Bug Fixes --------- - `3911 <https://github.com/pytest-dev/pytest/issues/3911>`_: Terminal writer now takes into account unicode character width when writing out progress. - `3913 <https://github.com/pytest-dev/pytest/issues/3913>`_: Pytest now returns with correct exit code (EXIT_USAGEERROR, 4) when called with unknown arguments. - `3918 <https://github.com/pytest-dev/pytest/issues/3918>`_: Improve performance of assertion rewriting. Improved Documentation ---------------------- - `3566 <https://github.com/pytest-dev/pytest/issues/3566>`_: Added a blurb in usage.rst for the usage of -r flag which is used to show an extra test summary info. - `3907 <https://github.com/pytest-dev/pytest/issues/3907>`_: Corrected type of the exceptions collection passed to ``xfail``: ``raises`` argument accepts a ``tuple`` instead of ``list``. Trivial/Internal Changes ------------------------ - `3853 <https://github.com/pytest-dev/pytest/issues/3853>`_: Removed ``"run all (no recorded failures)"`` message printed with ``--failed-first`` and ``--last-failed`` when there are no failed tests. ``` ### 3.7.4 ``` ========================= Bug Fixes --------- - `3506 <https://github.com/pytest-dev/pytest/issues/3506>`_: Fix possible infinite recursion when writing ``.pyc`` files. - `3853 <https://github.com/pytest-dev/pytest/issues/3853>`_: Cache plugin now obeys the ``-q`` flag when ``--last-failed`` and ``--failed-first`` flags are used. - `3883 <https://github.com/pytest-dev/pytest/issues/3883>`_: Fix bad console output when using ``console_output_style=classic``. - `3888 <https://github.com/pytest-dev/pytest/issues/3888>`_: Fix macOS specific code using ``capturemanager`` plugin in doctests. Improved Documentation ---------------------- - `3902 <https://github.com/pytest-dev/pytest/issues/3902>`_: Fix pytest.org links ``` ### 3.7.3 ``` ========================= Bug Fixes --------- - `3033 <https://github.com/pytest-dev/pytest/issues/3033>`_: Fixtures during teardown can again use ``capsys`` and ``capfd`` to inspect output captured during tests. - `3773 <https://github.com/pytest-dev/pytest/issues/3773>`_: Fix collection of tests from ``__init__.py`` files if they match the ``python_files`` configuration option. - `3796 <https://github.com/pytest-dev/pytest/issues/3796>`_: Fix issue where teardown of fixtures of consecutive sub-packages were executed once, at the end of the outer package. - `3816 <https://github.com/pytest-dev/pytest/issues/3816>`_: Fix bug where ``--show-capture=no`` option would still show logs printed during fixture teardown. - `3819 <https://github.com/pytest-dev/pytest/issues/3819>`_: Fix ``stdout/stderr`` not getting captured when real-time cli logging is active. - `3843 <https://github.com/pytest-dev/pytest/issues/3843>`_: Fix collection error when specifying test functions directly in the command line using ``test.py::test`` syntax together with ``--doctest-modules``. - `3848 <https://github.com/pytest-dev/pytest/issues/3848>`_: Fix bugs where unicode arguments could not be passed to ``testdir.runpytest`` on Python 2. - `3854 <https://github.com/pytest-dev/pytest/issues/3854>`_: Fix double collection of tests within packages when the filename starts with a capital letter. Improved Documentation ---------------------- - `3824 <https://github.com/pytest-dev/pytest/issues/3824>`_: Added example for multiple glob pattern matches in ``python_files``. - `3833 <https://github.com/pytest-dev/pytest/issues/3833>`_: Added missing docs for ``pytester.Testdir``. - `3870 <https://github.com/pytest-dev/pytest/issues/3870>`_: Correct documentation for setuptools integration. Trivial/Internal Changes ------------------------ - `3826 <https://github.com/pytest-dev/pytest/issues/3826>`_: Replace broken type annotations with type comments. - `3845 <https://github.com/pytest-dev/pytest/issues/3845>`_: Remove a reference to issue `568 <https://github.com/pytest-dev/pytest/issues/568>`_ from the documentation, which has since been fixed. ``` ### 3.7.2 ``` ========================= Bug Fixes --------- - `3671 <https://github.com/pytest-dev/pytest/issues/3671>`_: Fix ``filterwarnings`` not being registered as a builtin mark. - `3768 <https://github.com/pytest-dev/pytest/issues/3768>`_, `3789 <https://github.com/pytest-dev/pytest/issues/3789>`_: Fix test collection from packages mixed with normal directories. - `3771 <https://github.com/pytest-dev/pytest/issues/3771>`_: Fix infinite recursion during collection if a ``pytest_ignore_collect`` hook returns ``False`` instead of ``None``. - `3774 <https://github.com/pytest-dev/pytest/issues/3774>`_: Fix bug where decorated fixtures would lose functionality (for example ``mock.patch``). - `3775 <https://github.com/pytest-dev/pytest/issues/3775>`_: Fix bug where importing modules or other objects with prefix ``pytest_`` prefix would raise a ``PluginValidationError``. - `3788 <https://github.com/pytest-dev/pytest/issues/3788>`_: Fix ``AttributeError`` during teardown of ``TestCase`` subclasses which raise an exception during ``__init__``. - `3804 <https://github.com/pytest-dev/pytest/issues/3804>`_: Fix traceback reporting for exceptions with ``__cause__`` cycles. Improved Documentation ---------------------- - `3746 <https://github.com/pytest-dev/pytest/issues/3746>`_: Add documentation for ``metafunc.config`` that had been mistakenly hidden. ``` ### 3.7.1 ``` ========================= Bug Fixes --------- - `3473 <https://github.com/pytest-dev/pytest/issues/3473>`_: Raise immediately if ``approx()`` is given an expected value of a type it doesn't understand (e.g. strings, nested dicts, etc.). - `3712 <https://github.com/pytest-dev/pytest/issues/3712>`_: Correctly represent the dimensions of an numpy array when calling ``repr()`` on ``approx()``. - `3742 <https://github.com/pytest-dev/pytest/issues/3742>`_: Fix incompatibility with third party plugins during collection, which produced the error ``object has no attribute '_collectfile'``. - `3745 <https://github.com/pytest-dev/pytest/issues/3745>`_: Display the absolute path if ``cache_dir`` is not relative to the ``rootdir`` instead of failing. - `3747 <https://github.com/pytest-dev/pytest/issues/3747>`_: Fix compatibility problem with plugins and the warning code issued by fixture functions when they are called directly. - `3748 <https://github.com/pytest-dev/pytest/issues/3748>`_: Fix infinite recursion in ``pytest.approx`` with arrays in ``numpy<1.13``. - `3757 <https://github.com/pytest-dev/pytest/issues/3757>`_: Pin pathlib2 to ``>=2.2.0`` as we require ``__fspath__`` support. - `3763 <https://github.com/pytest-dev/pytest/issues/3763>`_: Fix ``TypeError`` when the assertion message is ``bytes`` in python 3. ``` ### 3.7.0 ``` ========================= Deprecations and Removals ------------------------- - `2639 <https://github.com/pytest-dev/pytest/issues/2639>`_: ``pytest_namespace`` has been `deprecated <https://docs.pytest.org/en/latest/deprecations.htmlpytest-namespace>`_. - `3661 <https://github.com/pytest-dev/pytest/issues/3661>`_: Calling a fixture function directly, as opposed to request them in a test function, now issues a ``RemovedInPytest4Warning``. See `the documentation for rationale and examples <https://docs.pytest.org/en/latest/deprecations.htmlcalling-fixtures-directly>`_. Features -------- - `2283 <https://github.com/pytest-dev/pytest/issues/2283>`_: New ``package`` fixture scope: fixtures are finalized when the last test of a *package* finishes. This feature is considered **experimental**, so use it sparingly. - `3576 <https://github.com/pytest-dev/pytest/issues/3576>`_: ``Node.add_marker`` now supports an ``append=True/False`` parameter to determine whether the mark comes last (default) or first. - `3579 <https://github.com/pytest-dev/pytest/issues/3579>`_: Fixture ``caplog`` now has a ``messages`` property, providing convenient access to the format-interpolated log messages without the extra data provided by the formatter/handler. - `3610 <https://github.com/pytest-dev/pytest/issues/3610>`_: New ``--trace`` option to enter the debugger at the start of a test. - `3623 <https://github.com/pytest-dev/pytest/issues/3623>`_: Introduce ``pytester.copy_example`` as helper to do acceptance tests against examples from the project. Bug Fixes --------- - `2220 <https://github.com/pytest-dev/pytest/issues/2220>`_: Fix a bug where fixtures overridden by direct parameters (for example parametrization) were being instantiated even if they were not being used by a test. - `3695 <https://github.com/pytest-dev/pytest/issues/3695>`_: Fix ``ApproxNumpy`` initialisation argument mixup, ``abs`` and ``rel`` tolerances were flipped causing strange comparsion results. Add tests to check ``abs`` and ``rel`` tolerances for ``np.array`` and test for expecting ``nan`` with ``np.array()`` - `980 <https://github.com/pytest-dev/pytest/issues/980>`_: Fix truncated locals output in verbose mode. Improved Documentation ---------------------- - `3295 <https://github.com/pytest-dev/pytest/issues/3295>`_: Correct the usage documentation of ``--last-failed-no-failures`` by adding the missing ``--last-failed`` argument in the presented examples, because they are misleading and lead to think that the missing argument is not needed. Trivial/Internal Changes ------------------------ - `3519 <https://github.com/pytest-dev/pytest/issues/3519>`_: Now a ``README.md`` file is created in ``.pytest_cache`` to make it clear why the directory exists. ``` ### 3.6.4 ``` ========================= Bug Fixes --------- - Invoke pytest using ``-mpytest`` so ``sys.path`` does not get polluted by packages installed in ``site-packages``. (`742 <https://github.com/pytest-dev/pytest/issues/742>`_) Improved Documentation ---------------------- - Use ``smtp_connection`` instead of ``smtp`` in fixtures documentation to avoid possible confusion. (`3592 <https://github.com/pytest-dev/pytest/issues/3592>`_) Trivial/Internal Changes ------------------------ - Remove obsolete ``__future__`` imports. (`2319 <https://github.com/pytest-dev/pytest/issues/2319>`_) - Add CITATION to provide information on how to formally cite pytest. (`3402 <https://github.com/pytest-dev/pytest/issues/3402>`_) - Replace broken type annotations with type comments. (`3635 <https://github.com/pytest-dev/pytest/issues/3635>`_) - Pin ``pluggy`` to ``<0.8``. (`3727 <https://github.com/pytest-dev/pytest/issues/3727>`_) ``` ### 3.6.3 ``` ========================= Bug Fixes --------- - Fix ``ImportWarning`` triggered by explicit relative imports in assertion-rewritten package modules. (`3061 <https://github.com/pytest-dev/pytest/issues/3061>`_) - Fix error in ``pytest.approx`` when dealing with 0-dimension numpy arrays. (`3593 <https://github.com/pytest-dev/pytest/issues/3593>`_) - No longer raise ``ValueError`` when using the ``get_marker`` API. (`3605 <https://github.com/pytest-dev/pytest/issues/3605>`_) - Fix problem where log messages with non-ascii characters would not appear in the output log file. (`3630 <https://github.com/pytest-dev/pytest/issues/3630>`_) - No longer raise ``AttributeError`` when legacy marks can't be stored in functions. (`3631 <https://github.com/pytest-dev/pytest/issues/3631>`_) Improved Documentation ---------------------- - The description above the example for ``pytest.mark.skipif`` now better matches the code. (`3611 <https://github.com/pytest-dev/pytest/issues/3611>`_) Trivial/Internal Changes ------------------------ - Internal refactoring: removed unused ``CallSpec2tox ._globalid_args`` attribute and ``metafunc`` parameter from ``CallSpec2.copy()``. (`3598 <https://github.com/pytest-dev/pytest/issues/3598>`_) - Silence usage of ``reduce`` warning in Python 2 (`3609 <https://github.com/pytest-dev/pytest/issues/3609>`_) - Fix usage of ``attr.ib`` deprecated ``convert`` parameter. (`3653 <https://github.com/pytest-dev/pytest/issues/3653>`_) ``` ### 3.6.2 ``` ========================= Bug Fixes --------- - Fix regression in ``Node.add_marker`` by extracting the mark object of a ``MarkDecorator``. (`3555 <https://github.com/pytest-dev/pytest/issues/3555>`_) - Warnings without ``location`` were reported as ``None``. This is corrected to now report ``<undetermined location>``. (`3563 <https://github.com/pytest-dev/pytest/issues/3563>`_) - Continue to call finalizers in the stack when a finalizer in a former scope raises an exception. (`3569 <https://github.com/pytest-dev/pytest/issues/3569>`_) - Fix encoding error with ``print`` statements in doctests (`3583 <https://github.com/pytest-dev/pytest/issues/3583>`_) Improved Documentation ---------------------- - Add documentation for the ``--strict`` flag. (`3549 <https://github.com/pytest-dev/pytest/issues/3549>`_) Trivial/Internal Changes ------------------------ - Update old quotation style to parens in fixture.rst documentation. (`3525 <https://github.com/pytest-dev/pytest/issues/3525>`_) - Improve display of hint about ``--fulltrace`` with ``KeyboardInterrupt``. (`3545 <https://github.com/pytest-dev/pytest/issues/3545>`_) - pytest's testsuite is no longer runnable through ``python setup.py test`` -- instead invoke ``pytest`` or ``tox`` directly. (`3552 <https://github.com/pytest-dev/pytest/issues/3552>`_) - Fix typo in documentation (`3567 <https://github.com/pytest-dev/pytest/issues/3567>`_) ```
Links - PyPI: https://pypi.org/project/pytest - Changelog: https://pyup.io/changelogs/pytest/ - Homepage: https://docs.pytest.org/en/latest/
pyup-bot commented 5 years ago

Closing this in favor of #71