[PATCH 2 of 8] import-checker: fix test to make a real package

Yuya Nishihara yuya at tcha.org
Sat May 14 03:33:47 EDT 2016


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1463201386 -32400
#      Sat May 14 13:49:46 2016 +0900
# Node ID f9c6e835b650600d21846e5ce2cabf0ffc53da3c
# Parent  c6077c18cb48e59dcbf51489f21cb1795dfdd0a7
import-checker: fix test to make a real package

Otherwise "testpackage" wouldn't be counted as a package when building a
list of imported symbols.

diff --git a/tests/test-check-module-imports.t b/tests/test-check-module-imports.t
--- a/tests/test-check-module-imports.t
+++ b/tests/test-check-module-imports.t
@@ -11,6 +11,7 @@ it's working correctly.
 Run additional tests for the import checker
 
   $ mkdir testpackage
+  $ touch testpackage/__init__.py
 
   $ cat > testpackage/multiple.py << EOF
   > from __future__ import absolute_import


More information about the Mercurial-devel mailing list