Skip to content

Commit

Permalink
Merge pull request #172 from pllim/deprecation-deprecated
Browse files Browse the repository at this point in the history
MNT: Stop using distutils
  • Loading branch information
pllim authored Dec 31, 2021
2 parents 4d93992 + ae2ee14 commit ae2cd94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pytest_doctestplus/sphinx/doctestplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class DoctestSkipDirective(Directive):

def run(self):
# Check if there is any valid argument, and skip it. Currently only
# 'win32' is supported in astropy.tests.pytest_plugins.
# 'win32' is supported.
if re.match('win32', self.content[0]):
self.content = self.content[2:]
code = '\n'.join(self.content)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_doctestplus.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from distutils.version import LooseVersion
from packaging.version import Version
from textwrap import dedent

import pytest
Expand Down Expand Up @@ -651,7 +651,7 @@ def f():
).assertoutcome(passed=2)


if LooseVersion('4.3.0') <= LooseVersion(pytest.__version__):
if Version('4.3.0') <= Version(pytest.__version__):
def test_ignore_glob_option(testdir):
testdir.makepyfile(foo="""
def f():
Expand Down

0 comments on commit ae2cd94

Please sign in to comment.