Skip to content

Commit

Permalink
install mock on 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaitan committed Feb 17, 2020
1 parent d69d585 commit ee6bcc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def run_tests(self):
'coveralls>=1.1,<2.0',
'pytest-cov>=2.5.1,<3.0',
'pytest>=3.0.0,<4.0',
'requests>=2.8.1,<3.0'
'requests>=2.8.1,<3.0',
"mock>=3.0.5; python_version<'2.7'",
]

extra_reqs = {
Expand Down
5 changes: 4 additions & 1 deletion tests/test_VideoClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
from numpy import sin, pi

import pytest
from unittest.mock import patch, sentinel
try:
from unittest.mock import patch, sentinel
except ImportError:
from mock import patch, sentinel
import numpy as np

from moviepy.video.VideoClip import VideoClip, ColorClip
Expand Down

0 comments on commit ee6bcc2

Please sign in to comment.