possible fix for #504
Update tests.py
Merge pull request #505 from ldrumm/issue504

possible fix for #504 - `tests.transport.TransportTest.test_custom_transport` fails randomly