Skip to content

Commit

Permalink
import patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lostanlen committed Nov 28, 2018
1 parent e0ee66f commit 0a37170
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
import tempfile


try:
# python 3.4+ should use builtin unittest.mock not mock package
from unittest.mock import patch
except ImportError:
from mock import patch


import birdvoxdetect
from birdvoxdetect.birdvoxdetect_exceptions import BirdVoxDetectError
from birdvoxdetect.cli import positive_float, get_file_list, run
Expand Down

0 comments on commit 0a37170

Please sign in to comment.