(pytester: Pytester)
| 1306 | |
| 1307 | |
| 1308 | def test_sequence_comparison_uses_repr(pytester: Pytester) -> None: |
| 1309 | pytester.makepyfile( |
| 1310 | """ |
| 1311 | def test_hello(): |
| 1312 | x = set("hello x") |
| 1313 | y = set("hello y") |
| 1314 | assert x == y |
| 1315 | """ |
| 1316 | ) |
| 1317 | result = pytester.runpytest() |
| 1318 | result.stdout.fnmatch_lines( |
| 1319 | [ |
| 1320 | "*def test_hello():*", |
| 1321 | "*assert x == y*", |
| 1322 | "*E*Extra items*left*", |
| 1323 | "*E*'x'*", |
| 1324 | "*E*Extra items*right*", |
| 1325 | "*E*'y'*", |
| 1326 | ] |
| 1327 | ) |
| 1328 | |
| 1329 | |
| 1330 | def test_assertrepr_loaded_per_dir(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected