GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — vscode-python/pythonFiles/tests/__main__.py at master · hypostulate/vscode-python Expand file tree/ Copy path__main__.pyMore file actions 45 lines (32 loc) · 1.18 KB / Copy path__main__.pyFile metadata and controls45 lines (32 loc) · 1.18 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import argparse import sys import pytest from . import DEBUG_ADAPTER_ROOT, IPYTHON_ROOT, SRC_ROOT, TEST_ROOT, TESTING_TOOLS_ROOT def parse_args(): parser = argparse.ArgumentParser() # To mark a test as functional: (decorator) @pytest.mark.functional parser.add_argument( "--functional", dest="markers", action="append_const", const="functional" ) parser.add_argument( "--no-functional", dest="markers", action="append_const", const="not functional" ) args, remainder = parser.parse_known_args() ns = vars(args) return ns, remainder def main(pytestargs, markers=None): sys.path.insert(1, IPYTHON_ROOT) sys.path.insert(1, TESTING_TOOLS_ROOT) sys.path.insert(1, DEBUG_ADAPTER_ROOT) pytestargs = ["--rootdir", SRC_ROOT, TEST_ROOT] + pytestargs for marker in reversed(markers or ()): pytestargs.insert(0, marker) pytestargs.insert(0, "-m") ec = pytest.main(pytestargs) return ec if __name__ == "__main__": mainkwargs, pytestargs = parse_args() ec = main(pytestargs, **mainkwargs) sys.exit(ec) |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |