[PATCH 1 of 5] tests: import multiple modules separately
FUJIWARA Katsunori
foozy at lares.dti.ne.jp
Mon Oct 8 17:34:36 UTC 2018
# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1534994441 -32400
# Thu Aug 23 12:20:41 2018 +0900
# Node ID fe5486e76d2610bdd20837b487deb3f0a9a2d820
# Parent 1d09ba0d2ed3d19f1ca1b116591cc413eb87ac65
# Available At https://bitbucket.org/foozy/mercurial-wip
# hg pull https://bitbucket.org/foozy/mercurial-wip -r fe5486e76d26
# EXP-Topic contrib-improve-import-checker
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.
diff --git a/tests/test-check-help.t b/tests/test-check-help.t
--- a/tests/test-check-help.t
+++ b/tests/test-check-help.t
@@ -7,7 +7,8 @@
> import re
> import sys
> if sys.platform == "win32":
- > import os, msvcrt
+ > import os
+ > import msvcrt
> msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
> topics = set()
> topicre = re.compile(br':hg:`help ([a-z0-9\-.]+)`')
More information about the Mercurial-devel
mailing list