File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1244,3 +1244,15 @@ async def setup(**kwargs):
1244
1244
await aclose_forcefully (ssl_listener )
1245
1245
await aclose_forcefully (ssl_client )
1246
1246
await aclose_forcefully (ssl_server )
1247
+
1248
+
1249
+ async def test_deprecated_max_refill_bytes ():
1250
+ stream1 , stream2 = memory_stream_pair ()
1251
+ with pytest .warns (trio .TrioDeprecationWarning ):
1252
+ SSLStream (stream1 , CLIENT_CTX , max_refill_bytes = 100 )
1253
+ with pytest .warns (trio .TrioDeprecationWarning ):
1254
+ # passing None is wrong here, but I'm too lazy to make a fake Listener
1255
+ # and we get away with it for now. And this test will be deleted in a
1256
+ # release or two anyway, so hopefully we'll keep getting away with it
1257
+ # for long enough.
1258
+ SSLListener (None , CLIENT_CTX , max_refill_bytes = 100 )
You can’t perform that action at this time.
0 commit comments