bpo-44785: Silence deprecation warnings in test_pickle (GH-27538)

(cherry picked from commit 36d952d228582b0ffc7a86c520d4ddbe8943d803)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 file changed