Patchwork [3,of,3,STABLE] test-check-code: prevent from adding Python modules shadowed by ancient C

login
register
mail settings
Submitter Yuya Nishihara
Date April 20, 2018, 12:10 p.m.
Message ID <343510c06fd291d18f6d.1524226234@mimosa>
Download mbox | patch
Permalink /patch/31206/
State Accepted
Headers show

Comments

Yuya Nishihara - April 20, 2018, 12:10 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1524225272 -32400
#      Fri Apr 20 20:54:32 2018 +0900
# Branch stable
# Node ID 343510c06fd291d18f6df3905e6f27637a4f37fd
# Parent  cb673b653e017e6e596f8d233fc8e7ad56e21b73
test-check-code: prevent from adding Python modules shadowed by ancient C

Patch

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 @@  Prevent adding new files in the root dir
   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]