SF.net SVN: docutils:[9685 ] trunk/docutils/test/test _nodes.py
grubert--- via Docutils-checkins <[email protected]>
| Newsgroups | gmane.text.docutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 9685
http://sourceforge.net/p/docutils/code/9685
Author: grubert
Date: 2024-05-04 09:44:39 +0000 (Sat, 04 May 2024)
Log Message:
-----------
Fix: assertRaisesRegexp gone in 3.12 use assertRaisesRegex
Modified Paths:
--------------
trunk/docutils/test/test_nodes.py
Modified: trunk/docutils/test/test_nodes.py
===================================================================
--- trunk/docutils/test/test_nodes.py 2024-05-04 09:35:10 UTC (rev 9684)
+++ trunk/docutils/test/test_nodes.py 2024-05-04 09:44:39 UTC (rev 9685)
@@ -476,7 +476,7 @@
def test_validate_wrong_attribute(self):
node = nodes.paragraph('', 'text', id='test-paragraph')
- with self.assertRaisesRegexp(ValueError,
+ with self.assertRaisesRegex(ValueError,
'Element <paragraph> '
'has invalid attribute "id".'):
node.validate()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.