aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node')
-rw-r--r--packages/meshbay-node/tests/test_packaging_default_env.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/meshbay-node/tests/test_packaging_default_env.py b/packages/meshbay-node/tests/test_packaging_default_env.py
index 60bbb78..586aef0 100644
--- a/packages/meshbay-node/tests/test_packaging_default_env.py
+++ b/packages/meshbay-node/tests/test_packaging_default_env.py
@@ -12,6 +12,7 @@ under bash against a scratch repo, rather than reading its text.
import shutil
import subprocess
+import sys
from pathlib import Path
import pytest
@@ -55,7 +56,9 @@ def test_only_the_token_line_ships(tmp_path):
out = _build(tmp_path, (TOKEN + "\r\nANOTHER_SECRET=hunter2\n# a note\n").encode())
assert out is not None
assert out.read_bytes() == (TOKEN + "\n").encode()
- assert out.stat().st_mode & 0o777 == 0o644
+ # A Linux package's mode; Windows (Git's bash there) has no such bits to set.
+ if sys.platform != "win32":
+ assert out.stat().st_mode & 0o777 == 0o644
@pytest.mark.parametrize(