##// END OF EJS Templates
py3: conditionalize _winreg import...
py3: conditionalize _winreg import _winreg module is renamed to winreg in python 3. Added the conditionalize statements in the respective file because adding this in pycompat will result in pycompat throwing error as this is a windows registry module and we have buildbots and most of the contributors on linux.

File last commit:

r29515:bd18c217 default
r29760:3df9f780 default
Show More
test-check-shbang.t
14 lines | 362 B | text/troff | Tads3Lexer
/ tests / test-check-shbang.t
timeless
tests: add new test for #! shebang lines...
r28879 #require test-repo
timeless
tests: silence test-repo obsolete warning...
r29219 $ . "$TESTDIR/helpers-testrepo.sh"
timeless
tests: add new test for #! shebang lines...
r28879 $ cd "`dirname "$TESTDIR"`"
look for python scripts that do not use /usr/bin/env
Augie Fackler
test-check-shbang: work around check-code not wanting hardcoded paths...
r29515 $ hg files 'set:grep(r"^#!.*?python") and not grep(r"^#!/usr/bi{1}n/env python")'
timeless
tests: add new test for #! shebang lines...
r28879 [1]
look for shell scripts that do not use /bin/sh
Augie Fackler
test-check-shbang: work around check-code not wanting hardcoded paths...
r29515 $ hg files 'set:grep(r"^#!.*/bi{1}n/sh") and not grep(r"^#!/bi{1}n/sh")'
timeless
tests: add new test for #! shebang lines...
r28879 [1]