changeset 40091:c36846abbcd3

tests: import multiple modules separately Current import-checker.py overlooks code fragment changed in this patch, because of restrictions below for a line starting code fragment. - filename must be specified before limit mark NG: cat <<EOF > FILE.py OK: cat > FILE.py <<EOF - limit mark must not be quoted NG: cat > FILE.py <<'EOF' OK: cat > FILE.py <<EOF import-checker.py itself is fixed in subsequent patch.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Thu, 23 Aug 2018 12:20:41 +0900
parents a66594c5fad4
children 58786930ea27
files tests/test-check-help.t
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-help.t	Mon Oct 08 11:50:25 2018 -0400
+++ b/tests/test-check-help.t	Thu Aug 23 12:20:41 2018 +0900
@@ -7,7 +7,8 @@
   > import re
   > import sys
   > if sys.platform == "win32":
-  >     import os, msvcrt
+  >     import msvcrt
+  >     import os
   >     msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
   > topics = set()
   > topicre = re.compile(br':hg:`help ([a-z0-9\-.]+)`')