diff options
| author | Julien Courteau <j_courteau@hotmail.com> | 2012-04-21 20:59:06 -0400 |
|---|---|---|
| committer | Julien Courteau <j_courteau@hotmail.com> | 2012-04-21 20:59:06 -0400 |
| commit | 5d5463009a93746b987f941b5698cf18ff6ec4fa (patch) | |
| tree | 019079aed4655b50a49c4ce9822ee622ad249367 /distutils2/tests | |
| parent | a511445037974f3f013bf3473378cf46c7656938 (diff) | |
| download | disutils2-5d5463009a93746b987f941b5698cf18ff6ec4fa.tar.gz | |
fix: setup.py register fails if description has ReST uncompatible with Sphinx (#13614)
Diffstat (limited to 'distutils2/tests')
| -rw-r--r-- | distutils2/tests/test_metadata.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/distutils2/tests/test_metadata.py b/distutils2/tests/test_metadata.py index 4f586cb..80fc278 100644 --- a/distutils2/tests/test_metadata.py +++ b/distutils2/tests/test_metadata.py @@ -379,6 +379,15 @@ class MetadataTestCase(LoggingCatcher, folded_desc = desc.replace('\n', '\n' + (7 * ' ') + '|') self.assertIn(folded_desc, out.getvalue()) + def test_description_invalid_rst(self): + # make sure bad rst is well handled in the description attribute + metadata = Metadata() + description_with_bad_rst = ':funkie:`str`' # Sphinx-specific markup + metadata['description'] = description_with_bad_rst + missing, warnings = metadata.check(restructuredtext=True) + warning = warnings[0][1] + self.assertIn('funkie', warning) + def test_project_url(self): metadata = Metadata() metadata['Project-URL'] = [('one', 'http://ok')] |
