• Brett Cannon's avatar
    Introduce test.test_support.TransientResource. It's a context manager to · a30fcb4d
    Brett Cannon yazdı
    surround calls to resources that may or may not be available.  Specifying the
    expected exception and attributes to be raised if the resource is not available
    prevents overly broad catching of exceptions.
    
    This is meant to help suppress spurious failures by raising
    test.test_support.ResourceDenied if the exception matches.  It would probably
    be good to go through the various network tests and surround the calls to catch
    connection timeouts (as done with test_socket_ssl in this commit).
    a30fcb4d
Adı
Son kayıt (commit)
Son güncelleme
..
api Loading commit data...
commontex Loading commit data...
dist Loading commit data...
doc Loading commit data...
ext Loading commit data...
howto Loading commit data...
html Loading commit data...
info Loading commit data...
inst Loading commit data...
lib Loading commit data...
mac Loading commit data...
paper-a4 Loading commit data...
perl Loading commit data...
ref Loading commit data...
templates Loading commit data...
tests Loading commit data...
texinputs Loading commit data...
tools Loading commit data...
tut Loading commit data...
whatsnew Loading commit data...
ACKS Loading commit data...
Makefile Loading commit data...
Makefile.deps Loading commit data...
README Loading commit data...
TODO Loading commit data...
python-docs.txt Loading commit data...