From 8e5cb0642fe1d06544245f8db7fbc0b845eb1f9e 2017-05-17 19:29:21 From: Brett Smith Date: 2017-05-17 19:29:21 Subject: [PATCH] CacheWriter: Update tests for previous open file change. --- diff --git a/tests/test_CacheWriter.py b/tests/test_CacheWriter.py index 1ceadce2cfe17eaadd3af6a004282dab688312a7..4023a4eb68f48aae40369c33b5083cdb792c96a2 100644 --- a/tests/test_CacheWriter.py +++ b/tests/test_CacheWriter.py @@ -15,12 +15,9 @@ class TestCacheFile(oxrlib.cache.WriteCacheFile): def __init__(self, path, *args, **kwargs): self.path = path assert args[0].startswith('w') - - def open(self): - last_file = StringIO() - last_file.name = self.path.as_posix() - type(self).last_file = last_file - return self.last_file + self.open_file = StringIO() + self.open_file.name = self.path.as_posix() + type(self).last_file = self.open_file class FakeRate: