Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 766c965 commit cb7c722Copy full SHA for cb7c722
1 file changed
lib/matplotlib/tests/test_image.py
@@ -718,7 +718,8 @@ def test_load_from_url():
718
+ ('///' if sys.platform == 'win32' else '')
719
+ path.resolve().as_posix())
720
plt.imread(url)
721
- plt.imread(urllib.request.urlopen(url))
+ with urllib.request.urlopen(url) as file:
722
+ plt.imread(file)
723
724
725
@image_comparison(['log_scale_image'], remove_text=True)
0 commit comments