summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-04-23 07:19:54 +0100
committerLars Wirzenius <liw@liw.fi>2012-04-23 07:19:54 +0100
commit83cc4feaa19367527076c9840f6aaae72f7922c8 (patch)
treea2da7c42171eea603f9cfa9a1f5fa4cfeceba8da
parent0a8f3a8367c9fe42f7e25e50fdf4b400454fe48a (diff)
downloadlarch-83cc4feaa19367527076c9840f6aaae72f7922c8.tar.gz
Fix test case for read-only mode
If writer removes a file, we should still be able to read it in the reader until the writer commits.
-rw-r--r--larch/journal_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/larch/journal_tests.py b/larch/journal_tests.py
index 256de4e..dd5ccf7 100644
--- a/larch/journal_tests.py
+++ b/larch/journal_tests.py
@@ -226,5 +226,5 @@ class ReadOnlyJournalTests(unittest.TestCase):
self.rw.overwrite_file(filename, 'bar')
self.rw.commit()
self.rw.remove(filename)
- self.assertRaises(IOError, self.ro.cat, filename)
+ self.assertEqual(self.ro.cat(filename), 'bar')