aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2024-10-05 09:45:16 +0100
committerGravatar GitHub <[email protected]>2024-10-05 09:45:16 +0100
commit7afaffb13baf8e6f87ef84bccaf0806b9aa1c7eb (patch)
treea70d032fef9434888557dbc5fad9e22e475aa558
parentAdd a note about multi-verison support to the README (diff)
Correct spelling errors
Co-authored-by: Mark <[email protected]>
-rw-r--r--README.md2
-rw-r--r--tests/test_integration.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 2b4e9fd..6e9b0e8 100644
--- a/README.md
+++ b/README.md
@@ -52,7 +52,7 @@ The above command will make the API accessible on the host via `http://localhost
### Python multi-version support
-By default, the binary ran within nsjail is the binary specified by `DEFAULT_BINARY_PATH` at the top of [`nsjail.py`]. This can be overridden by specifying `binary_path` in the request body of calls to `POST /eval` or by setting the `binary_path` kwarg if calling `NSJail.python3()` directly.
+By default, the binary that runs within nsjail is the binary specified by `DEFAULT_BINARY_PATH` at the top of [`nsjail.py`]. This can be overridden by specifying `binary_path` in the request body of calls to `POST /eval` or by setting the `binary_path` kwarg if calling `NSJail.python3()` directly.
Any binary that exists within the container is a valid value for `binary_path`. The main use case of this feature is currently to specify the version of Python to use.
diff --git a/tests/test_integration.py b/tests/test_integration.py
index 62a7d69..e173dd3 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -85,11 +85,11 @@ class IntegrationTests(unittest.TestCase):
"""Test that passing invalid binary paths result in no code execution."""
with run_gunicorn():
cases = [
- ("/abc/def", "test non-existant files are not run", "binary_path does not exist"),
- ("/snekbin", "test directories are not ran", "binary_path is not a file"),
+ ("/abc/def", "test non-existent files are not run", "binary_path does not exist"),
+ ("/snekbin", "test directories are not run", "binary_path is not a file"),
(
"/etc/hostname",
- "test non-executable files are not ran",
+ "test non-executable files are not run",
"binary_path is not executable",
),
]