mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	
		
			
	
	
		
			9 lines
		
	
	
	
		
			238 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			9 lines
		
	
	
	
		
			238 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
								 | 
							
								import sys
							 | 
						||
| 
								 | 
							
								import unittest
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class FooTest(unittest.TestCase):
							 | 
						||
| 
								 | 
							
								    def test_foo(self):
							 | 
						||
| 
								 | 
							
								        # use 2.6 syntax to demonstrate conversion
							 | 
						||
| 
								 | 
							
								        print 'In test_foo, using Python %s...' % (sys.version_info,)
							 | 
						||
| 
								 | 
							
								        self.assertTrue(False)
							 |