fix issue221 - handle importing of namespace-package with no

__init__.py properly. (This is a commit after the fix -- the
original issue steps for failure cannot be reproduced anymore).
This commit is contained in:
holger krekel 2013-11-20 21:04:19 +01:00
parent bd8a2cc18c
commit 73f36fc8b7
2 changed files with 5 additions and 1 deletions

View File

@ -56,6 +56,9 @@ Unreleased
although it's not needed by pytest itself atm. Also although it's not needed by pytest itself atm. Also
fix caching. Fixes issue376. fix caching. Fixes issue376.
- fix issue221 - handle importing of namespace-package with no
__init__.py properly.
Changes between 2.4.1 and 2.4.2 Changes between 2.4.1 and 2.4.2
----------------------------------- -----------------------------------

View File

@ -66,7 +66,8 @@ def report(issues):
if __name__ == "__main__": if __name__ == "__main__":
import argparse import argparse
parser = argparse.ArgumentParser("process bitbucket issues") parser = argparse.ArgumentParser("process bitbucket issues")
parser.add_argument("--refresh", help="invalidate cache, refresh issues") parser.add_argument("--refresh", action="store_true",
help="invalidate cache, refresh issues")
parser.add_argument("--cache", action="store", default="issues.json", parser.add_argument("--cache", action="store", default="issues.json",
help="cache file") help="cache file")
args = parser.parse_args() args = parser.parse_args()