@@ -286,17 +286,17 @@ def test_url():
286
286
287
287
# collections
288
288
s = ax .scatter ([1 , 2 , 3 ], [4 , 5 , 6 ])
289
- s .set_urls (['http ://example.com/foo' , 'http ://example.com/bar' , None ])
289
+ s .set_urls (['https ://example.com/foo' , 'https ://example.com/bar' , None ])
290
290
291
291
# Line2D
292
292
p , = plt .plot ([1 , 3 ], [6 , 5 ])
293
- p .set_url ('http ://example.com/baz' )
293
+ p .set_url ('https ://example.com/baz' )
294
294
295
295
b = BytesIO ()
296
296
fig .savefig (b , format = 'svg' )
297
297
b = b .getvalue ()
298
298
for v in [b'foo' , b'bar' , b'baz' ]:
299
- assert b'http ://example.com/' + v in b
299
+ assert b'https ://example.com/' + v in b
300
300
301
301
302
302
def test_url_tick (monkeypatch ):
@@ -305,13 +305,13 @@ def test_url_tick(monkeypatch):
305
305
fig1 , ax = plt .subplots ()
306
306
ax .scatter ([1 , 2 , 3 ], [4 , 5 , 6 ])
307
307
for i , tick in enumerate (ax .yaxis .get_major_ticks ()):
308
- tick .set_url (f'http ://example.com/{ i } ' )
308
+ tick .set_url (f'https ://example.com/{ i } ' )
309
309
310
310
fig2 , ax = plt .subplots ()
311
311
ax .scatter ([1 , 2 , 3 ], [4 , 5 , 6 ])
312
312
for i , tick in enumerate (ax .yaxis .get_major_ticks ()):
313
- tick .label1 .set_url (f'http ://example.com/{ i } ' )
314
- tick .label2 .set_url (f'http ://example.com/{ i } ' )
313
+ tick .label1 .set_url (f'https ://example.com/{ i } ' )
314
+ tick .label2 .set_url (f'https ://example.com/{ i } ' )
315
315
316
316
b1 = BytesIO ()
317
317
fig1 .savefig (b1 , format = 'svg' )
@@ -322,7 +322,7 @@ def test_url_tick(monkeypatch):
322
322
b2 = b2 .getvalue ()
323
323
324
324
for i in range (len (ax .yaxis .get_major_ticks ())):
325
- assert f'http ://example.com/{ i } ' .encode ('ascii' ) in b1
325
+ assert f'https ://example.com/{ i } ' .encode ('ascii' ) in b1
326
326
assert b1 == b2
327
327
328
328
0 commit comments