Changeset 0cfe818 in mod_gnutls for test/https-test-client.py


Ignore:
Timestamp:
Jan 7, 2020, 12:51:04 PM (11 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master, proxy-ticket
Children:
d14d7d1
Parents:
b307cc1
git-author:
Fiona Klute <fiona.klute@…> (01/07/20 02:12:07)
git-committer:
Fiona Klute <fiona.klute@…> (01/07/20 12:51:04)
Message:

https-test-client.py: Use with instead of try/finally to safely close file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/https-test-client.py

    rb307cc1 r0cfe818  
    1616# limitations under the License.
    1717
     18import contextlib
    1819import os
    1920
     
    5051        os.environ['TEST_PORT'] = args.port
    5152
    52     try:
     53    with contextlib.closing(args.test_config):
    5354        run_test_conf(args.test_config, args.timeout)
    54     finally:
    55         args.test_config.close()
Note: See TracChangeset for help on using the changeset viewer.