MCPcopy Create free account
hub / github.com/numpy/numpy / test_str

Method test_str

numpy/random/tests/test_direct.py:278–282  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

276 assert f'{id(rs):#x}'.upper().replace('X', 'x') in repr(rs)
277
278 def test_str(self):
279 rs = Generator(self.bit_generator(*self.data1['seed']))
280 assert 'Generator' in str(rs)
281 assert str(self.bit_generator.__name__) in str(rs)
282 assert f'{id(rs):#x}'.upper().replace('X', 'x') not in str(rs)
283
284 def test_pickle(self):
285 import pickle

Callers

nothing calls this directly

Calls 2

replaceMethod · 0.80
upperMethod · 0.80

Tested by

no test coverage detected