Skip to content

Commit

Permalink
Correct spelling errors
Browse files Browse the repository at this point in the history
Co-authored-by: Mark <1515135+MarkKoz@users.noreply.github.com>
  • Loading branch information
ChrisLovering and MarkKoz authored Oct 5, 2024
1 parent 76ba512 commit 7afaffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
6 changes: 3 additions & 3 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ def invalid_binary_paths(self):
"""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",
),
]
Expand Down

0 comments on commit 7afaffb

Please sign in to comment.