Changeset 4de8cd3 in mod_gnutls


Ignore:
Timestamp:
Dec 31, 2019, 11:40:20 AM (6 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
5d5a7c8
Parents:
92cf138
Message:

Remove an ExitStack? made obsolete by wrapping "with" around main()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtest.py

    r92cf138 r4de8cd3  
    178178
    179179        # Run the test connections
    180         with contextlib.ExitStack() as stack:
    181             if plugin.run_connection:
    182                 plugin.run_connection(testname,
    183                                       conn_log=args.log_connection,
    184                                       response_log=args.log_responses)
    185             else:
    186                 test_conf = stack.enter_context(
    187                     open(os.path.join(testdir, 'test.yml'), 'r'))
     180        if plugin.run_connection:
     181            plugin.run_connection(testname,
     182                                  conn_log=args.log_connection,
     183                                  response_log=args.log_responses)
     184        else:
     185            with open(os.path.join(testdir, 'test.yml'), 'r') as test_conf:
    188186                run_test_conf(test_conf,
    189187                              float(os.environ.get('TEST_QUERY_TIMEOUT', 5.0)),
Note: See TracChangeset for help on using the changeset viewer.