3) pooling it should reuse freed instances, if available
Failure/Error: spec/data/pool_spec.py expect(PoolStub.allocated).to(equal(1))
AssertionError:
expected: 12 to equal 1
File "/path/to/python3.6/site-packages/expects/expectations.py", line 25, in _assert
raise AssertionError(self._failure_message(matcher, reasons))
File "/path/to/python3.6/site-packages/expects/expectations.py", line 19, in to
self._assert(matcher)
Removing two lines fixes the issue:
def _traceback(self, example_):
tb = example_.error.traceback.tb_next
#if tb.tb_next is not None:
# tb = tb.tb_next
return tb
Giving the following:
3) pooling it should reuse freed instances, if available
Failure/Error: spec/data/pool_spec.py expect(PoolStub.allocated).to(equal(1))
AssertionError:
expected: 12 to equal 1
File "/path/to/python3.6/site-packages/expects/expectations.py", line 25, in _assert
raise AssertionError(self._failure_message(matcher, reasons))
File "/path/to/python3.6/site-packages/expects/expectations.py", line 19, in to
self._assert(matcher)
File "spec/data/pool_spec.py", line 53, in 00000027__it should reuse freed instances, if available--
expect(PoolStub.allocated).to(equal(1))
Sample failure:
Removing two lines fixes the issue:
Giving the following: