Mercurial > hg > PaInt
changeset 59:acee5e882768
the egg-info tests fail. yay!
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 25 Jan 2013 07:12:33 -0800 |
parents | 13767ee2ddf4 |
children | aa3c90255db6 |
files | paint/info.py tests/doctest.txt |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/paint/info.py Wed Jan 23 16:59:36 2013 -0800 +++ b/paint/info.py Fri Jan 25 07:12:33 2013 -0800 @@ -101,7 +101,7 @@ def _pkg_info(self): """returns path to PKG-INFO file""" - if self._pkg_info_path: + if getattr(self, '_pkg_info_path', None): # return cached value return self._pkg_info_path
--- a/tests/doctest.txt Wed Jan 23 16:59:36 2013 -0800 +++ b/tests/doctest.txt Fri Jan 25 07:12:33 2013 -0800 @@ -23,3 +23,10 @@ >>> info = package_info() >>> info['name'] 'dummy' + +Now let's use the .egg-info way:: + + >>> package_info = paint.info.EggInfo(dummy_path) + >>> info = package_info() + >>> info['name'] + 'dummy'