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.
--- 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\-.]+)`')