(self, position, length)
| 252 | } |
| 253 | |
| 254 | def get_expected_hash(self, position, length): |
| 255 | if length < sys.hash_info.cutoff: |
| 256 | algorithm = "djba33x" |
| 257 | else: |
| 258 | algorithm = sys.hash_info.algorithm |
| 259 | if sys.byteorder == 'little': |
| 260 | platform = 1 if IS_64BIT else 0 |
| 261 | else: |
| 262 | assert(sys.byteorder == 'big') |
| 263 | platform = 3 if IS_64BIT else 2 |
| 264 | return self.known_hashes[algorithm][position][platform] |
| 265 | |
| 266 | def test_null_hash(self): |
| 267 | # PYTHONHASHSEED=0 disables the randomized hash |
no outgoing calls
no test coverage detected