# HG changeset patch # User Jeff Hammel # Date 1359126753 28800 # Node ID acee5e882768bd176ace219c2277898afb0e8841 # Parent 13767ee2ddf466e09d3314fdea359f5b87069c76 the egg-info tests fail. yay! diff -r 13767ee2ddf4 -r acee5e882768 paint/info.py --- 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 diff -r 13767ee2ddf4 -r acee5e882768 tests/doctest.txt --- 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'