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

login
register
mail settings
Submitter Yuya Nishihara
Date May 14, 2016, 7:33 a.m.
Message ID <f9c6e835b650600d2184.1463211227@mimosa>
Download mbox | patch
Permalink /patch/15109/
State Accepted
Headers show

Comments

Yuya Nishihara - May 14, 2016, 7:33 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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.

Patch

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