Skip to content

Commit 85eef19

Browse files
committed
MNT: fix test version check
1 parent 2bb34e5 commit 85eef19

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/matplotlib/tests/test_animation.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import sys
55

66
import numpy as np
7+
from pathlib import Path
78
import pytest
89

910
import matplotlib as mpl
@@ -123,10 +124,8 @@ def isAvailable(cls):
123124
('html', 'movie.html'),
124125
('null', 'movie.null')
125126
]
126-
if sys.version_info >= (3, 6):
127-
from pathlib import Path
128-
WRITER_OUTPUT += [
129-
(writer, Path(output)) for writer, output in WRITER_OUTPUT]
127+
WRITER_OUTPUT += [
128+
(writer, Path(output)) for writer, output in WRITER_OUTPUT]
130129

131130

132131
# Smoke test for saving animations. In the future, we should probably

0 commit comments

Comments
 (0)