Remove obsolete "importorskip('unittest.mock')" calls

This commit is contained in:
Bruno Oliveira 2019-07-15 11:18:05 -03:00
parent 8f2f3bb1fa
commit 8a3f40996a
1 changed files with 0 additions and 3 deletions

View File

@ -126,7 +126,6 @@ class TestMockDecoration:
assert values == ("y", "z") assert values == ("y", "z")
def test_unittest_mock(self, testdir): def test_unittest_mock(self, testdir):
pytest.importorskip("unittest.mock")
testdir.makepyfile( testdir.makepyfile(
""" """
import unittest.mock import unittest.mock
@ -142,7 +141,6 @@ class TestMockDecoration:
reprec.assertoutcome(passed=1) reprec.assertoutcome(passed=1)
def test_unittest_mock_and_fixture(self, testdir): def test_unittest_mock_and_fixture(self, testdir):
pytest.importorskip("unittest.mock")
testdir.makepyfile( testdir.makepyfile(
""" """
import os.path import os.path
@ -164,7 +162,6 @@ class TestMockDecoration:
reprec.assertoutcome(passed=1) reprec.assertoutcome(passed=1)
def test_unittest_mock_and_pypi_mock(self, testdir): def test_unittest_mock_and_pypi_mock(self, testdir):
pytest.importorskip("unittest.mock")
pytest.importorskip("mock", "1.0.1") pytest.importorskip("mock", "1.0.1")
testdir.makepyfile( testdir.makepyfile(
""" """