@@ -46,6 +46,15 @@ def test_check_metadata(self):
4646 cmd = self ._run (metadata , strict = 1 )
4747 self .assertEqual (cmd ._warnings , 0 )
4848
49+ # now a test with non-ASCII characters
50+ metadata = {'url' : 'xxx' , 'author' : '\u00c9 ric' ,
51+ 'author_email' : 'xxx' , 'name' : 'xxx' ,
52+ 'version' : 'xxx' ,
53+ 'description' : 'Something about esszet \u00df ' ,
54+ 'long_description' : 'More things about esszet \u00df ' }
55+ cmd = self ._run (metadata )
56+ self .assertEqual (cmd ._warnings , 0 )
57+
4958 def test_check_document (self ):
5059 if not HAS_DOCUTILS : # won't test without docutils
5160 return
@@ -80,8 +89,8 @@ def test_check_restructuredtext(self):
8089 self .assertRaises (DistutilsSetupError , self ._run , metadata ,
8190 ** {'strict' : 1 , 'restructuredtext' : 1 })
8291
83- # and non-broken rest
84- metadata ['long_description' ] = 'title\n =====\n \n test'
92+ # and non-broken rest, including a non-ASCII character to test #12114
93+ metadata ['long_description' ] = 'title\n =====\n \n test \u00df '
8594 cmd = self ._run (metadata , strict = 1 , restructuredtext = 1 )
8695 self .assertEqual (cmd ._warnings , 0 )
8796
0 commit comments