Skip to content
Permalink
Browse files

Merge pull request #3609 from asottile/remove_warning_py2_functools_r…

…educe

Silence usage of `reduce` warning in python 2
  • Loading branch information...
asottile committed Jun 21, 2018
2 parents b7b9c54 + 8b4c59e commit 630428c6114eb752d1f40e38e642cdbdcd55f37d
Showing with 3 additions and 1 deletion.
  1. +1 −0 changelog/3609.trivial.rst
  2. +2 −1 src/_pytest/mark/structures.py
@@ -0,0 +1 @@
Silence usage of ``reduce`` warning in python 2
@@ -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"

0 comments on commit 630428c

Please sign in to comment.
You can’t perform that action at this time.