From 8e5cb0642fe1d06544245f8db7fbc0b845eb1f9e Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Wed, 17 May 2017 15:29:21 -0400 Subject: [PATCH] CacheWriter: Update tests for previous open file change. --- tests/test_CacheWriter.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/test_CacheWriter.py b/tests/test_CacheWriter.py index 1ceadce..4023a4e 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: