Skip to content

Video editing with Python

Fix minor inconsistencies (#1469)

Álvaro Mondéjarfac722df7c4c
diff --git a/moviepy/video/VideoClip.py b/moviepy/video/VideoClip.py
index b1ba574d..35897a8b 100644
--- a/moviepy/video/VideoClip.py
+++ b/moviepy/video/VideoClip.py
@@ -137,9 +137,6 @@ class VideoClip(Clip):
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__
diff --git a/tests/test_examples.py b/tests/test_examples.py
index 0a837b64..b9bc36d4 100644
--- a/tests/test_examples.py
+++ b/tests/test_examples.py
@@ -14,7 +14,7 @@ except ImportError:
matplotlib = None
[email protected](not matplotlib, reason="no mpl")
[email protected](not matplotlib, reason="no matplotlib")
def test_matplotlib_simple_example():
import matplotlib.pyplot as plt
diff --git a/tests/test_issues.py b/tests/test_issues.py
index 90fa3137..dbcc5157 100644
--- a/tests/test_issues.py
+++ b/tests/test_issues.py
@@ -14,6 +14,11 @@ from moviepy.utils import close_all_clips
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)
@@ -261,6 +266,7 @@ def test_issue_359():
video.write_gif(filename=os.path.join(TMP_DIR, "issue_359.gif"), tempfiles=True)
[email protected](not matplotlib, reason="no matplotlib")
def test_issue_368():
import numpy as np
import matplotlib.pyplot as plt