+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.8, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/python-meh-0.50
plugins: flaky-3.6.1, forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1, mock-3.5.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, hypothesis-6.8.1, pyfakefs-4.4.0, freezegun-0.4.2
collected 1 item
tests/safe_string_test.py F [100%]
================================================================================= FAILURES =================================================================================
_________________________________________________________________________ SafeStr_TestCase.runTest _________________________________________________________________________
self = <tests.safe_string_test.SafeStr_TestCase testMethod=runTest>
def runTest(self):
self.safestr += self.asciistr
self.safestr += self.enc_unistr
self.safestr += self.unistr
self.safestr += self.bindata
self.safestr += self.test_object
self.safestr += self.test_object2
self.assertIn(self.asciistr, self.safestr)
if PY == 2:
self.assertIn("OMITTED OBJECT WITHOUT __str__ METHOD", self.safestr)
# should be included twice -- appended enc_unistr and unistr
self.assertIn(str(self.enc_unistr), self.safestr)
else:
> self.assertIn("<safe_string_test.TestClass2 object at ", self.safestr)
E AssertionError: '<safe_string_test.TestClass2 object at ' not found in "aaaab'\\xc3\\xa1\\xc3\\xa1\\xc3\\xa1\\xc3\\xa1\\xc3\\xa1'áááááb'\\xff\\xff\\xfe'string representation of TestClass instance<tests.safe_string_test.TestClass2 object at 0x7fa1a6b6d7f0>"
tests/safe_string_test.py:38: AssertionError
========================================================================= short test summary info ==========================================================================
FAILED tests/safe_string_test.py::SafeStr_TestCase::runTest - AssertionError: '<safe_string_test.TestClass2 object at ' not found in "aaaab'\\xc3\\xa1\\xc3\\xa1\\xc3\\xa...
============================================================================ 1 failed in 0.24s =============================================================================