Skip to content

deprecation warnings when imported on python 3.7 beta #3339

@irmen

Description

@irmen

Python 3.7 will introduce a few new API deprecation warnings. They're triggered when importing pytest on python 3.7 beta:

11:20 $ python3.7 -Wall 
Python 3.7.0b2+ (heads/3.7:3b4c6b16c5, Mar 22 2018, 23:55:22) 
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import  pytest
/home/irmen/.local/lib/python3.7/site-packages/_pytest/assertion/util.py:8: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import Sequence
/home/irmen/.local/lib/python3.7/site-packages/_pytest/assertion/rewrite.py:6: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
/home/irmen/.local/lib/python3.7/site-packages/_pytest/mark/structures.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import namedtuple, MutableMapping as MappingMixin
>>> pytest.__version__
'3.5.0'
>>> 

pytest version: 3.5.0
python version: cpython 3.7 built from source (3.7 branch)
OS: debian 9

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: warningsrelated to the warnings builtin plugintype: backward compatibilitymight present some backward compatibility issues which should be carefully noted in the changelogtype: bugproblem that needs to be addressedtype: deprecationfeature that will be removed in the futuretype: infrastructureimprovement to development/releases/CI structure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions