1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-23 06:31:58 +00:00

use mock from stdlib, fixes #145

This commit is contained in:
Thomas Waldmann 2015-12-14 22:08:53 +01:00
parent 8a819d4499
commit dabac6a4ed
4 changed files with 3 additions and 5 deletions

View file

@ -1,7 +1,7 @@
from datetime import datetime, timezone from datetime import datetime, timezone
from unittest.mock import Mock
import msgpack import msgpack
from mock import Mock
from ..archive import Archive, CacheChunkBuffer, RobustUnpacker from ..archive import Archive, CacheChunkBuffer, RobustUnpacker
from ..key import PlaintextKey from ..key import PlaintextKey

View file

@ -11,9 +11,9 @@
import tempfile import tempfile
import time import time
import unittest import unittest
from unittest.mock import patch
from hashlib import sha256 from hashlib import sha256
from mock import patch
import pytest import pytest
from .. import xattr from .. import xattr

View file

@ -2,8 +2,7 @@
import shutil import shutil
import sys import sys
import tempfile import tempfile
from unittest.mock import patch
from mock import patch
from ..hashindex import NSIndex from ..hashindex import NSIndex
from ..helpers import Location, IntegrityError from ..helpers import Location, IntegrityError

View file

@ -1,6 +1,5 @@
virtualenv<14.0 virtualenv<14.0
tox tox
mock
pytest pytest
pytest-cov<2.0.0 pytest-cov<2.0.0
pytest-benchmark>=3.0.0 pytest-benchmark>=3.0.0