Skip to content

Commit

Permalink
suppress errors in folly
Browse files Browse the repository at this point in the history
Differential Revision: D53150946

fbshipit-source-id: eba6d83bad9c0d29cb46cdc425bec763d7980fdf
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Jan 27, 2024
1 parent 35eaa90 commit ac55469
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions folly/python/test/iobuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ 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]: For 1st argument expected `Buffer` but got `Optional[IOBuf]`.
self.assertEqual(memoryview(chain.next), control[1])
self.assertEqual(b"".join(chain), b"".join(control))

Expand All @@ -59,6 +60,7 @@ 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]: For 1st argument expected `Buffer` but got `Optional[IOBuf]`.
self.assertEqual(memoryview(chain.next), control[1])
self.assertEqual(b"".join(chain), b"".join(control))

Expand All @@ -74,6 +76,7 @@ def test_hash(self) -> None:
def test_empty(self) -> None:
x = b""
xb = IOBuf(x)
# pyre-fixme[6]: For 1st argument expected `Buffer` but got `IOBuf`.
self.assertEqual(memoryview(xb), x)
self.assertEqual(bytes(xb), x)
self.assertFalse(xb)
Expand Down

0 comments on commit ac55469

Please sign in to comment.