mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	ruff: Bump target-version from py38 to py310.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							3f29bc42b1
						
					
				
				
					commit
					48202389b8
				
			@@ -1297,16 +1297,18 @@ class AvatarTest(UploadSerializeMixin, ZulipTestCase):
 | 
			
		||||
 | 
			
		||||
        source_original_path_id = avatar_disk_path(source_user_profile, original=True)
 | 
			
		||||
        target_original_path_id = avatar_disk_path(target_user_profile, original=True)
 | 
			
		||||
        with open(source_original_path_id, "rb") as source, open(
 | 
			
		||||
            target_original_path_id, "rb"
 | 
			
		||||
        ) as target:
 | 
			
		||||
        with (
 | 
			
		||||
            open(source_original_path_id, "rb") as source,
 | 
			
		||||
            open(target_original_path_id, "rb") as target,
 | 
			
		||||
        ):
 | 
			
		||||
            self.assertEqual(source.read(), target.read())
 | 
			
		||||
 | 
			
		||||
        source_medium_path_id = avatar_disk_path(source_user_profile, medium=True)
 | 
			
		||||
        target_medium_path_id = avatar_disk_path(target_user_profile, medium=True)
 | 
			
		||||
        with open(source_medium_path_id, "rb") as source, open(
 | 
			
		||||
            target_medium_path_id, "rb"
 | 
			
		||||
        ) as target:
 | 
			
		||||
        with (
 | 
			
		||||
            open(source_medium_path_id, "rb") as source,
 | 
			
		||||
            open(target_medium_path_id, "rb") as target,
 | 
			
		||||
        ):
 | 
			
		||||
            self.assertEqual(source.read(), target.read())
 | 
			
		||||
 | 
			
		||||
    def test_delete_avatar_image(self) -> None:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user