Change string format syntax from {} to {0} for py2.6
--HG-- branch : issue463
This commit is contained in:
		
							parent
							
								
									6f81602ba2
								
							
						
					
					
						commit
						deb163d237
					
				| 
						 | 
					@ -144,7 +144,7 @@ def pytest_cmdline_main(config):
 | 
				
			||||||
def pytest_generate_tests(metafunc):
 | 
					def pytest_generate_tests(metafunc):
 | 
				
			||||||
    # this misspelling is common - raise a specific error to alert the user
 | 
					    # this misspelling is common - raise a specific error to alert the user
 | 
				
			||||||
    if hasattr(metafunc.function, 'parameterize'):
 | 
					    if hasattr(metafunc.function, 'parameterize'):
 | 
				
			||||||
        msg = "{} has mark 'parameterize', spelling should be 'parametrize'"
 | 
					        msg = "{0} has mark 'parameterize', spelling should be 'parametrize'"
 | 
				
			||||||
        raise ValueError(msg.format(metafunc.function.__name__))
 | 
					        raise ValueError(msg.format(metafunc.function.__name__))
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        markers = metafunc.function.parametrize
 | 
					        markers = metafunc.function.parametrize
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue