We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3bf6ea commit bed22acCopy full SHA for bed22ac
Lib/test/test_gzip.py
@@ -331,7 +331,7 @@ def test_metadata(self):
331
self.assertEqual(cmByte, b'\x08') # deflate
332
333
try:
334
- expectedname = self.filename.encode('Latin-1') + b'\x00'
+ expectedname = os.path.basename(self.filename).encode('Latin-1') + b'\x00'
335
expectedflags = b'\x08' # only the FNAME flag is set
336
except UnicodeEncodeError:
337
expectedname = b''
0 commit comments