Skip to content

Commit

Permalink
Fix failing tests with the latest cached_property release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krienbühl committed Mar 13, 2015
1 parent 70ffe2e commit 3fc76ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions libres/context/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,8 @@ def validate_email(self):
def clear_cache(self):
""" Clears the cache of the mixin. """

properties = (
'is_allocation_exposed',
'generate_uuid',
'validate_email'
)

for p in properties:
if p in self.__dict__:
del self.__dict__[p]
if '_cache' in self.__dict__:
del self.__dict__['_cache']


class Context(object):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_long_description():
zip_safe=False,
platforms='any',
install_requires=[
'cached_property',
'cached_property >= 1.0.0',
'python-dateutil',
'psycopg2',
'pytz',
Expand Down

0 comments on commit 3fc76ae

Please sign in to comment.