MCPcopy Index your code
hub / github.com/python/cpython / C

Class C

Lib/test/test_zstd.py:1778–1780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1776
1777 # 3, no .fileno() method
1778 class C:
1779 def read(self, size=-1):
1780 return b'123'
1781 with ZstdFile(C(), 'rb') as f:
1782 with self.assertRaisesRegex(AttributeError, r'fileno'):
1783 f.fileno()

Callers 5

test_filenoMethod · 0.70
test_nameMethod · 0.70
test_read_exceptionMethod · 0.70
test_zstdfile_flushMethod · 0.70

Calls

no outgoing calls

Tested by 5

test_filenoMethod · 0.56
test_nameMethod · 0.56
test_read_exceptionMethod · 0.56
test_zstdfile_flushMethod · 0.56