1
0
Fork 0
forked from github/pelican

Merge pull request #2936 from BenSturmfels/no-pager

Use `git --no-pager` rather than override all environment variables
This commit is contained in:
Justin Mayer 2021-10-08 14:52:38 +02:00 committed by GitHub
commit d1a874e580
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,9 +56,8 @@ class TestPelican(LoggedTestCase):
def assertDirsEqual(self, left_path, right_path):
out, err = subprocess.Popen(
['git', 'diff', '--no-ext-diff', '--exit-code',
['git', '--no-pager', 'diff', '--no-ext-diff', '--exit-code',
'-w', left_path, right_path],
env={'PAGER': ''},
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
).communicate()