pschanely / CrossHair

An analysis tool for Python that blurs the line between testing and type systems.
Other
1.03k stars 49 forks source link

a bytes-like object is required, not `SymbolicBytes` when calling `zlib.compress(b'')` #286

Closed Zac-HD closed 3 months ago

Zac-HD commented 4 months ago
import zlib

def fn(buf: bytes):
  "post: True"
  zlib.compress(buf)

(via https://github.com/HypothesisWorks/hypothesis/pull/4034)

Zac-HD commented 3 months ago

Fixed by https://github.com/pschanely/CrossHair/commit/915144cdf52d8b75897c96c8515ed3342f1b3d9b 🎊