mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			207 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			207 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from unittest import TestCase
 | 
						|
 | 
						|
import json
 | 
						|
 | 
						|
class TestDefault(TestCase):
 | 
						|
    def test_default(self):
 | 
						|
        self.assertEqual(
 | 
						|
            json.dumps(type, default=repr),
 | 
						|
            json.dumps(repr(type)))
 |