mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
exception.message was removed in py 3.X
This commit is contained in:
parent
73b37989f7
commit
aae56fee39
1 changed files with 1 additions and 3 deletions
|
|
@ -26,10 +26,8 @@ class ReaderTest(unittest.TestCase):
|
|||
class DefaultReaderTest(ReaderTest):
|
||||
|
||||
def test_readfile_unknown_extension(self):
|
||||
with self.assertRaises(TypeError) as cm:
|
||||
with self.assertRaises(TypeError):
|
||||
self.read_file(path='article_with_metadata.unknownextension')
|
||||
ex = cm.exception
|
||||
self.assertIn('Pelican does not know how to parse', ex.message)
|
||||
|
||||
|
||||
class RstReaderTest(ReaderTest):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue