Changeset ad2690b in mod_gnutls


Ignore:
Timestamp:
Oct 8, 2020, 2:20:33 PM (6 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio
Children:
c26a163
Parents:
9eda494
Message:

Fix flake8 warnings in runtest.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtest.py

    r9eda494 rad2690b  
    3030from mgstest.services import ApacheService, TestService
    3131from mgstest.tests import run_test_conf
    32 
    3332
    3433
     
    5352                    else:
    5453                        found = entry
    55         if found == None:
     54        if found is None:
    5655            raise LookupError('No test directory found for test number '
    5756                              f'{number}!')
     
    5958            return (found.path, found.name)
    6059
     60
    6161def temp_logfile():
    6262    return tempfile.SpooledTemporaryFile(max_size=4096, mode='w+',
    6363                                         prefix='mod_gnutls', suffix=".log")
    64 
    65 
    6664
    6765
     
    7472               '--load-cert', check_cert]
    7573    return subprocess.run(command).returncode == 0
     74
    7675
    7776def check_msva():
     
    8483        with open(cert_file, 'r') as cert:
    8584            return subprocess.run(command, stdin=cert).returncode == 0
    86 
    8785
    8886
     
    166164        if cleanup_callback:
    167165            service_stack.callback(cleanup_callback)
    168         service_stack.enter_context(lockfile('test.lock', nolock='MGS_NETNS_ACTIVE' in os.environ))
     166        service_stack.enter_context(
     167            lockfile('test.lock', nolock='MGS_NETNS_ACTIVE' in os.environ))
    169168        service_stack.enter_context(ocsp.run())
    170169        service_stack.enter_context(backend.run())
     
    221220            if errors[0] > 0:
    222221                sys.exit(ord('V'))
    223 
    224222
    225223
Note: See TracChangeset for help on using the changeset viewer.