Lines Matching refs:repr_
174 def get_hash_command(self, repr_): argument
175 return 'print(hash(eval(%a)))' % repr_
177 def get_hash(self, repr_, seed=None): argument
186 '-c', self.get_hash_command(repr_),
193 run1 = self.get_hash(self.repr_, seed='random')
194 run2 = self.get_hash(self.repr_, seed='random')
198 repr_ = None variable in StringlikeHashRandomizationTests
258 self.assertNotEqual(self.get_hash(self.repr_), known_hash_of_obj)
261 self.assertEqual(self.get_hash(self.repr_, seed=0), known_hash_of_obj)
268 self.assertEqual(self.get_hash(self.repr_, seed=42), h)
280 repr_ = repr('abc') variable in StrHashRandomizationTests
297 repr_ = repr(b'abc') variable in BytesHashRandomizationTests
306 repr_ = "memoryview(b'abc')" variable in MemoryviewHashRandomizationTests
314 def get_hash_command(self, repr_): argument
315 return 'import datetime; print(hash(%s))' % repr_
318 repr_ = repr(datetime.date(1066, 10, 14)) variable in DatetimeDateTests
321 repr_ = repr(datetime.datetime(1, 2, 3, 4, 5, 6, 7)) variable in DatetimeDatetimeTests
324 repr_ = repr(datetime.time(0)) variable in DatetimeTimeTests