@@ -148,31 +148,25 @@ def test_add_binary_file(self):
148148 f .write (_bytes_sample_message )
149149 f .seek (0 )
150150 key = self ._box .add (f )
151- # See issue 11062
152- if not isinstance (self ._box , mailbox .Babyl ):
153- self .assertEqual (self ._box .get_bytes (key ).split (b'\n ' ),
154- _bytes_sample_message .split (b'\n ' ))
151+ self .assertEqual (self ._box .get_bytes (key ).split (b'\n ' ),
152+ _bytes_sample_message .split (b'\n ' ))
155153
156154 def test_add_binary_nonascii_file (self ):
157155 with tempfile .TemporaryFile ('wb+' ) as f :
158156 f .write (self ._non_latin_bin_msg )
159157 f .seek (0 )
160158 key = self ._box .add (f )
161- # See issue 11062
162- if not isinstance (self ._box , mailbox .Babyl ):
163- self .assertEqual (self ._box .get_bytes (key ).split (b'\n ' ),
164- self ._non_latin_bin_msg .split (b'\n ' ))
159+ self .assertEqual (self ._box .get_bytes (key ).split (b'\n ' ),
160+ self ._non_latin_bin_msg .split (b'\n ' ))
165161
166162 def test_add_text_file_warns (self ):
167163 with tempfile .TemporaryFile ('w+' ) as f :
168164 f .write (_sample_message )
169165 f .seek (0 )
170166 with self .assertWarns (DeprecationWarning ):
171167 key = self ._box .add (f )
172- # See issue 11062
173- if not isinstance (self ._box , mailbox .Babyl ):
174- self .assertEqual (self ._box .get_bytes (key ).split (b'\n ' ),
175- _bytes_sample_message .split (b'\n ' ))
168+ self .assertEqual (self ._box .get_bytes (key ).split (b'\n ' ),
169+ _bytes_sample_message .split (b'\n ' ))
176170
177171 def test_add_StringIO_warns (self ):
178172 with self .assertWarns (DeprecationWarning ):
0 commit comments