# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1524225272 -32400
#      Fri Apr 20 20:54:32 2018 +0900
# Branch stable
# Node ID 1ec874717d8a93b19e0d50628443e0ee5efab3a9
# Parent  72f6498c040bdfa21a119c54a257404bcf3c56e6
test-check-code: prevent from adding Python modules shadowed by ancient C

diff --git a/tests/test-check-code.t b/tests/test-check-code.t
--- a/tests/test-check-code.t
+++ b/tests/test-check-code.t
@@ -51,3 +51,15 @@
   hgeditor
   hgweb.cgi
   setup.py
+
+Prevent adding modules which could be shadowed by ancient .so/.dylib.
+
+  $ testrepohg files \
+  > mercurial/base85.py \
+  > mercurial/bdiff.py \
+  > mercurial/diffhelpers.py \
+  > mercurial/mpatch.py \
+  > mercurial/osutil.py \
+  > mercurial/parsers.py \
+  > mercurial/zstd.py
+  [1]