| 391 |
| 392 |
| 393 |
| 394 |
| 395 |
| 396 |
| 397 |
| 398 |
| 399 |
| 400 |
| 401 |
| 402 | |
def test_check_random_inequality(): |
tmp = py.test.ensuretemp("ineq") |
tmp.ensure("test_x.py").write(py.code.Source("""def test_one(): |
pass |
""")) |
col = py.test.collect.Directory(tmp) |
fn = col._tryiter().next() |
assert fn != 3 |
assert fn != col |
assert fn != [1,2,3] |
-> assert [1,2,3] != fn |
assert col != fn | |