Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1198453

Browse files
committed
Fix test
1 parent 13ca11f commit 1198453

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/tests/test_basic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import sys
44

55
import matplotlib
6+
from matplotlib.cbook import dedent
67

78

89
def test_simple():
@@ -39,7 +40,7 @@ def test_verbose():
3940

4041

4142
def test_lazy_imports():
42-
source = """
43+
source = dedent("""
4344
import sys
4445
4546
import matplotlib.figure
@@ -50,7 +51,7 @@ def test_lazy_imports():
5051
assert 'matplotlib._tri' not in sys.modules
5152
assert 'matplotlib._qhull' not in sys.modules
5253
assert 'matplotlib._contour' not in sys.modules
53-
"""
54+
""")
5455

5556
subprocess.check_call([
5657
sys.executable,

0 commit comments

Comments
 (0)