module documentation
Tests for the command-line scripts in the top-level bin/ directory.
Tests for actual functionality belong elsewhere, written in a way that doesn't involve launching child processes.
Class |
|
Tests for the core scripts. |
Class |
|
Mixin for TestCase subclasses which defines a helper function for testing a Twisted-using script. |
Class |
|
Test that zsh completion functions are generated without error |
Function | output |
Synchronously run a Python script, with the same Python interpreter that ran the process calling this function, using Popen , using the given command-line arguments, with standard input and standard error both redirected to ... |
Synchronously run a Python script, with the same Python interpreter that ran the process calling this function, using Popen
, using the given command-line arguments, with standard input and standard error both redirected to os.devnull
, and return its output as a string.
Parameters | |
script:FilePath | The path to the script. |
*args:tuple of str | The command-line arguments to follow the script in its invocation (the desired sys.argv[1:]). |
Returns | |
bytes | the output passed to the proces's stdout, without any messages from stderr. |