Conditions | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 12 |
Ratio | 100 % |
Changes | 0 |
1 | """ |
||
28 | @pytest.mark.skipif(platform.python_implementation() != 'PyPy' |
||
29 | or platform.system() != 'Linux', |
||
30 | reason="requires PyPy on Debian Linux") |
||
31 | @patch('pyclean.pypyclean.installed_namespaces', return_value={}) |
||
32 | def test_clean_package_pypy(mock_namespaces): |
||
33 | """ |
||
34 | Does collecting/traversing packages for cleaning work for PyPy? |
||
35 | """ |
||
36 | with ArgvContext('pyclean', '--legacy', '-p', 'python'): |
||
37 | pyclean.cli.main() |
||
38 | |||
39 | assert mock_namespaces.called |
||
40 |