Files
gotify-tray-customized/venv/lib/python3.12/site-packages/setuptools/tests/test_scripts.py
kdusek 6a1fe63684
All checks were successful
build / build-linux (push) Successful in 16s
Remove hardcoded libpython binaries and add debug step
2025-12-07 23:15:18 +01:00

13 lines
379 B
Python

from setuptools import _scripts
class TestWindowsScriptWriter:
def test_header(self):
hdr = _scripts.WindowsScriptWriter.get_header('')
assert hdr.startswith('#!')
assert hdr.endswith('\n')
hdr = hdr.lstrip('#!')
hdr = hdr.rstrip('\n')
# header should not start with an escaped quote
assert not hdr.startswith('\\"')