|  |  | @ -47,8 +47,7 @@ class ModuleTestCase(unittest.TestCase): | 
			
		
	
		
		
			
				
					
					|  |  |  |             subprocess.check_output([PYTHON, '-m', 'yamllint'], |  |  |  |             subprocess.check_output([PYTHON, '-m', 'yamllint'], | 
			
		
	
		
		
			
				
					
					|  |  |  |                                     stderr=subprocess.STDOUT) |  |  |  |                                     stderr=subprocess.STDOUT) | 
			
		
	
		
		
			
				
					
					|  |  |  |         self.assertEqual(ctx.exception.returncode, 2) |  |  |  |         self.assertEqual(ctx.exception.returncode, 2) | 
			
		
	
		
		
			
				
					
					|  |  |  |         self.assertRegex(ctx.exception.output.decode(), |  |  |  |         self.assertRegex(ctx.exception.output.decode(), r'^usage: yamllint') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                  r'^usage: yamllint') |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     def test_run_module_on_bad_dir(self): |  |  |  |     def test_run_module_on_bad_dir(self): | 
			
		
	
		
		
			
				
					
					|  |  |  |         with self.assertRaises(subprocess.CalledProcessError) as ctx: |  |  |  |         with self.assertRaises(subprocess.CalledProcessError) as ctx: | 
			
		
	
	
		
		
			
				
					|  |  | @ -56,7 +55,7 @@ class ModuleTestCase(unittest.TestCase): | 
			
		
	
		
		
			
				
					
					|  |  |  |                                      '/does/not/exist'], |  |  |  |                                      '/does/not/exist'], | 
			
		
	
		
		
			
				
					
					|  |  |  |                                     stderr=subprocess.STDOUT) |  |  |  |                                     stderr=subprocess.STDOUT) | 
			
		
	
		
		
			
				
					
					|  |  |  |         self.assertRegex(ctx.exception.output.decode(), |  |  |  |         self.assertRegex(ctx.exception.output.decode(), | 
			
		
	
		
		
			
				
					
					|  |  |  |                                  r'No such file or directory') |  |  |  |                          r'No such file or directory') | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     def test_run_module_on_file(self): |  |  |  |     def test_run_module_on_file(self): | 
			
		
	
		
		
			
				
					
					|  |  |  |         out = subprocess.check_output( |  |  |  |         out = subprocess.check_output( | 
			
		
	
	
		
		
			
				
					|  |  | 
 |