Skip to content

Commit

Permalink
suppress errors in folly
Browse files Browse the repository at this point in the history
Reviewed By: connernilsen

Differential Revision: D53098940

fbshipit-source-id: 90fa5b80c4597a53395236b12a988347de06e22b
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Jan 26, 2024
1 parent b0dfaeb commit 35eaa90
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions folly/python/test/iobuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ def test_chain(self) -> None:
self.assertEqual(len(chain), len(control[0]))
self.assertEqual(chain.chain_size(), sum(len(x) for x in control))
self.assertEqual(chain.chain_count(), len(control))
# pyre-fixme[6]: Expected `Union[bytearray, bytes, memoryview]` for 1st
# param but got `Optional[IOBuf]`.
self.assertEqual(memoryview(chain.next), control[1])
self.assertEqual(b"".join(chain), b"".join(control))

Expand All @@ -61,8 +59,6 @@ def test_cyclic_chain(self) -> None:
self.assertEqual(len(chain), len(control[0]))
self.assertEqual(chain.chain_size(), sum(len(x) for x in control))
self.assertEqual(chain.chain_count(), len(control))
# pyre-fixme[6]: Expected `Union[bytearray, bytes, memoryview]` for 1st
# param but got `Optional[IOBuf]`.
self.assertEqual(memoryview(chain.next), control[1])
self.assertEqual(b"".join(chain), b"".join(control))

Expand All @@ -78,8 +74,6 @@ def test_hash(self) -> None:
def test_empty(self) -> None:
x = b""
xb = IOBuf(x)
# pyre-fixme[6]: Expected `Union[bytearray, bytes, memoryview]` for 1st
# param but got `IOBuf`.
self.assertEqual(memoryview(xb), x)
self.assertEqual(bytes(xb), x)
self.assertFalse(xb)
Expand Down

0 comments on commit 35eaa90

Please sign in to comment.