Github user ran-z commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/126#discussion_r115427438
  
    --- Diff: tests/helpers.py ---
    @@ -34,16 +33,17 @@ def get_service_template_uri(*args):
     
     
     class FilesystemDataHolder(object):
    -    _tmpfile = tempfile.NamedTemporaryFile('w')
     
         def _load(self):
    -        return json.load(open(self._tmpfile.name))
    +        return json.load(open(self._path))
     
         def _dump(self, value):
    -        return json.dump(value, open(self._tmpfile.name, 'w'))
    +        return json.dump(value, open(self._path, 'w'))
     
    -    def __init__(self):
    -        self.clear()
    +    def __init__(self, path, reset=False):
    --- End diff --
    
    move init to be the first method


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to