Skip to content

Commit

Permalink
Silence usage of reduce warning in python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Jun 21, 2018
1 parent b7b9c54 commit 8b4c59e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/3609.trivial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Silence usage of ``reduce`` warning in python 2
3 changes: 2 additions & 1 deletion src/_pytest/mark/structures.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import inspect
import warnings
from collections import namedtuple
from functools import reduce
from operator import attrgetter

import attr

from ..deprecated import MARK_PARAMETERSET_UNPACKING, MARK_INFO_ATTRIBUTE
from ..compat import NOTSET, getfslineno, MappingMixin
from six.moves import map, reduce
from six.moves import map


EMPTY_PARAMETERSET_OPTION = "empty_parameter_set_mark"
Expand Down

0 comments on commit 8b4c59e

Please sign in to comment.