X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=tests%2Ftest_cmp.py;h=a461aac97799c2899e8a1fe473e3c11ec4c6922f;hb=97b4410203f8fb7318b0965bfa58925b71a807db;hp=24dfd5fc8665f91c5feb424b6a36e15be260d4a7;hpb=1aaa1a75e6c4ec88d7a403f9f0460de727ff38d8;p=ppu.git diff --git a/tests/test_cmp.py b/tests/test_cmp.py index 24dfd5f..a461aac 100755 --- a/tests/test_cmp.py +++ b/tests/test_cmp.py @@ -1,14 +1,11 @@ #! /usr/bin/env python -import os import subprocess import sys from ppu_tu import setup, teardown, find_in_path # noqa test_prog_path = find_in_path('cmp.py') -if not test_prog_path: - sys.exit("Cannot find cmp.py in %s" % os.environ["PATH"]) def create_file(name, content): @@ -25,4 +22,4 @@ def test_cmp_equal(): create_file('test3', 'test3') create_file('test4', 'test4') assert subprocess.call( - [sys.executable, test_prog_path, "-i", "test3", "test4"]) == 1 + [sys.executable, test_prog_path, "-s", "test3", "test4"]) == 1