Simplify cross version tests

This commit is contained in:
Anthony Sottile 2018-01-02 12:47:47 -08:00
parent c5030c8dca
commit a506a1cac1
6 changed files with 8 additions and 11 deletions

View file

@ -130,8 +130,8 @@ def test_switch_language_versions_doesnt_clobber(tempdir_factory, store):
assert ret[0] == 0
assert _norm_out(ret[1]) == expected_output
run_on_version('python3.4', b'3.4\n[]\nHello World\n')
run_on_version('python3.5', b'3.5\n[]\nHello World\n')
run_on_version('python2', b'2\n[]\nHello World\n')
run_on_version('python3', b'3\n[]\nHello World\n')
@pytest.mark.integration
@ -140,7 +140,7 @@ def test_versioned_python_hook(tempdir_factory, store):
tempdir_factory, store, 'python3_hooks_repo',
'python3-hook',
[os.devnull],
b"3.5\n['" + five.to_bytes(os.devnull) + b"']\nHello World\n",
b"3\n['" + five.to_bytes(os.devnull) + b"']\nHello World\n",
)