(s1, s2)
| 198 | |
| 199 | |
| 200 | def append_strings(s1, s2): |
| 201 | if s1.__class__ == s2.__class__: |
| 202 | return s1 + s2 |
| 203 | |
| 204 | # Prefer str |
| 205 | if isinstance(s1, bytes): |
| 206 | s1 = s1.decode("utf-8", "replace") |
| 207 | |
| 208 | if isinstance(s2, bytes): |
| 209 | s2 = s2.decode("utf-8", "replace") |
| 210 | |
| 211 | return s1 + s2 |
| 212 | |
| 213 | |
| 214 | def pytest_runtest_logreport(report): |
no test coverage detected