Mercurial > p > roundup > code
comparison test/test_misc.py @ 7965:6763813d9d34
issue2551350 - Python changes for 3.12 with roundup 2.3.0 cgitb.py
Fix change in pydoc.html.header() signature. It dropped foreground and
background color arguments in 3.11 and newer.
Also enable test code for the html function.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 14 May 2024 21:27:28 -0400 |
| parents | cbcd6253ebaa |
| children | 70703d22c79a |
comparison
equal
deleted
inserted
replaced
| 7964:791b61ed11c9 | 7965:6763813d9d34 |
|---|---|
| 221 elif sys.version_info > (3, 0, 0): | 221 elif sys.version_info > (3, 0, 0): |
| 222 self.assertEqual(expected3, p) | 222 self.assertEqual(expected3, p) |
| 223 else: | 223 else: |
| 224 self.assertEqual(expected2, p) | 224 self.assertEqual(expected2, p) |
| 225 | 225 |
| 226 def notest_html(self): | 226 def test_html(self): |
| 227 """ templating error """ | 227 """ templating error """ |
| 228 # enabiling this will cause the test to fail as the variable | 228 # enabiling this will cause the test to fail as the variable |
| 229 # is included in the live output but not in expected. | 229 # is included in the live output but not in expected. |
| 230 # self.maxDiff = None | 230 # self.maxDiff = None |
| 231 | 231 |
