Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: userver/testsuite/create_runner.py
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-8
- ===================================================================
- diff --git a/userver/testsuite/create_runner.py b/userver/testsuite/create_runner.py
- --- a/userver/testsuite/create_runner.py
- +++ b/userver/testsuite/create_runner.py
- @@ -53,10 +53,7 @@
- default=[],
- help='Semicolon separated Python path',
- )
- - parser.add_argument(
- - 'pytest_args', nargs='*', help='Extra pytest arguments',
- - )
- - args = parser.parse_args()
- + args, unknown_args = parser.parse_known_args()
- if not args.python.exists():
- parser.exit(
- @@ -64,10 +61,13 @@
- message=f'Invalid path to python interpreter: {args.python}\n',
- )
- + if unknown_args and unknown_args[0] == '--':
- + del unknown_args[0]
- +
- script = TEMPLATE.format(
- python=args.python,
- python_path=pprint.pformat(args.python_path),
- - pytest_args=pprint.pformat(args.pytest_args),
- + pytest_args=pprint.pformat(unknown_args),
- )
- args.output.write_text(script)
- args.output.chmod(0o755)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement