tests: import multiple modules separately
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Thu, 23 Aug 2018 12:20:41 +0900
changeset 40091 c36846abbcd3
parent 40090 a66594c5fad4
child 40092 58786930ea27
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.
tests/test-check-help.t
--- 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\-.]+)`')