Skip to content

Commit 61e7e9a

Browse files
committed
Remove reference to Mock
Since Python 3.3, unittest.mock has been part of the standard library
1 parent 4b55755 commit 61e7e9a

10 files changed

+9
-10
lines changed

requirements-dev.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
mock>=1.3.0
21
sh>=1.11
32
parameterized>=0.6.1
43
pytest

test/cwd_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import unittest
2-
import mock
2+
from unittest import mock
33
import os
44
import tempfile
55
import shutil

test/segments_test/bzr_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
from contextlib import ExitStack
33

4-
import mock
4+
from unittest import mock
55
import tempfile
66
import shutil
77
import sh

test/segments_test/fossil_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from contextlib import ExitStack
33
from os import environ
44

5-
import mock
5+
from unittest import mock
66
import tempfile
77
import shutil
88
import sh

test/segments_test/git_stash_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
from contextlib import ExitStack
33

4-
import mock
4+
from unittest import mock
55
import tempfile
66
import shutil
77
import sh

test/segments_test/git_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
from contextlib import ExitStack
33

4-
import mock
4+
from unittest import mock
55
import tempfile
66
import shutil
77
import sh

test/segments_test/hg_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
from contextlib import ExitStack
33

4-
import mock
4+
from unittest import mock
55
import tempfile
66
import shutil
77
import sh

test/segments_test/hostname_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import unittest
2-
import mock
2+
from unittest import mock
33
import powerline_shell.segments.hostname as hostname
44
from powerline_shell.themes.default import Color
55
from argparse import Namespace

test/segments_test/svn_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import shutil
44
from contextlib import ExitStack
55

6-
import mock
6+
from unittest import mock
77
import sh
88
import powerline_shell.segments.svn as svn
99
from ..testing_utils import dict_side_effect_fn

test/segments_test/uptime_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import unittest
2-
import mock
2+
from unittest import mock
33
import powerline_shell.segments.uptime as uptime
44

55
test_cases = {

0 commit comments

Comments
 (0)