mirror of
				https://github.com/python/cpython.git
				synced 2025-10-27 19:54:38 +00:00 
			
		
		
		
	M.-A. Lemburg <mal@lemburg.com>:
Added another test for string formatting (the one that produced the core dump now fixed in unicodeobject.c).
This commit is contained in:
		
							parent
							
								
									8b4d01d9f9
								
							
						
					
					
						commit
						774c931c12
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -263,6 +263,12 @@ def __init__(self): self.seq = [7, u'hello', 123L] | |||
| assert '...%(foo)s...' % {u'foo':u"abc",u'def':123} == u'...abc...' | ||||
| assert '...%s...%s...%s...%s...' % (1,2,3,u"abc") == u'...1...2...3...abc...' | ||||
| assert '...%s...' % u"abc" == u'...abc...' | ||||
| try: | ||||
|     '...%s...äöü...' % u"abc" | ||||
| except ValueError: | ||||
|     pass | ||||
| else: | ||||
|     raise AssertionError, "'...%s...äöü...' % u'abc' failed to raise an exception" | ||||
| print 'done.' | ||||
| 
 | ||||
| # Test builtin codecs | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fred Drake
						Fred Drake