Closed theY4Kman closed 5 years ago
Whoops, I'm totally presuming an item's class will always be Node
, lemme fix that guy up. And lemme see if I can't knock down the pytest minimum version req.
Well, that was an adventure. I chose pytest 2.6 as the earliest supported version.
More versions may be supported, but a distutils/distribute SSLError prevents installing <2.4, and assertion rewriting fails w/ py36+ and pytest<2.6
pytest 4.1.0 removed the get_marker method. To support older versions and 4.1.0, this PR uses either
Node.get_closest_marker
orNode.get_marker
, with selection by feature detection.Shoutout to @rib3 and @madzim for the johnny-on-the-spot PRs, which were how I found out about the removals. So much for semver :P