Skip to content

Commit

Permalink
Fix minor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Jan 19, 2021
1 parent 2066244 commit acc02b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 0 additions & 3 deletions moviepy/video/VideoClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ def __copy__(self):
if attr in ("mask", "audio"):
value = _copy.copy(value)
setattr(new_clip, attr, value)

new_clip.audio = _copy.copy(self.audio)
new_clip.mask = _copy.copy(self.mask)
return new_clip

copy = __copy__
Expand Down
2 changes: 1 addition & 1 deletion tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
matplotlib = None


@pytest.mark.skipif(not matplotlib, reason="no mpl")
@pytest.mark.skipif(not matplotlib, reason="no matplotlib")
def test_matplotlib_simple_example():
import matplotlib.pyplot as plt

Expand Down
6 changes: 6 additions & 0 deletions tests/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

from tests.test_helper import TMP_DIR

try:
import matplotlib
except ImportError:
matplotlib = None


def test_issue_145():
video = ColorClip((800, 600), color=(255, 0, 0)).with_duration(5)
Expand Down Expand Up @@ -261,6 +266,7 @@ def test_issue_359():
video.write_gif(filename=os.path.join(TMP_DIR, "issue_359.gif"), tempfiles=True)


@pytest.mark.skipif(not matplotlib, reason="no matplotlib")
def test_issue_368():
import numpy as np
import matplotlib.pyplot as plt
Expand Down

0 comments on commit acc02b2

Please sign in to comment.