Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/test_progressbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@
Test the progressbar 'FileTransferSpeed' integration
"""

try:
import unittest.mock
except ImportError:
import mock

from . import TestCase
import bitmath
from bitmath.integrations.bmprogressbar import BitmathFileTransferSpeed
import mock
import progressbar


Expand Down
6 changes: 5 additions & 1 deletion tests/test_query_device_capacity.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@

from . import TestCase
import bitmath
import mock
import struct

try:
import unittest.mock
except ImportError:
import mock

try:
# Python 3.3+
from contextlib import ExitStack, contextmanager
Expand Down