Closed arkamar closed 6 days ago
This PR tries to fix two failing tests, test_factory and test_pipe, reported in https://github.com/lincolnloop/python-qrcode/issues/355 and https://github.com/lincolnloop/python-qrcode/issues/361. The issue seems to be related to mocked sys.stdout because the mocked object is probably missing certain attributes or methods that need to be emulated.
test_factory
test_pipe
sys.stdout
Both tests start to work for me again with this change.
I can confirm that this patch fixes the testsuite for me.
This PR tries to fix two failing tests,
test_factory
andtest_pipe
, reported in https://github.com/lincolnloop/python-qrcode/issues/355 and https://github.com/lincolnloop/python-qrcode/issues/361. The issue seems to be related to mockedsys.stdout
because the mocked object is probably missing certain attributes or methods that need to be emulated.Both tests start to work for me again with this change.