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

Skip to content

Commit d4879e5

Browse files
committed
TST: Adjust to state tracking on 3.5.x branch
The implementation of tracking if the repl displayhook is installed changed on main. Adjust the backported test to work with the old way.
1 parent 829b699 commit d4879e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def test_pylab_integration():
345345
"-c",
346346
";".join((
347347
"import matplotlib.pyplot as plt",
348-
"assert plt._REPL_DISPLAYHOOK == plt._ReplDisplayHook.IPYTHON",
348+
"assert plt._IP_REGISTERED is not None",
349349
)),
350350
timeout=60,
351351
)

0 commit comments

Comments
 (0)