diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-04-23 07:19:54 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-04-23 07:19:54 +0100 |
commit | 83cc4feaa19367527076c9840f6aaae72f7922c8 (patch) | |
tree | a2da7c42171eea603f9cfa9a1f5fa4cfeceba8da | |
parent | 0a8f3a8367c9fe42f7e25e50fdf4b400454fe48a (diff) | |
download | larch-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.py | 2 |
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') |