Explorar o código

Use universal newlines in subprocess output to prevent tests

  dulwich.tests.test_blackbox.GitReceivePackTests:test_missing_arg
  dulwich.tests.test_blackbox.GitUploadPackTests:test_missing_arg

to fail because of mismatched line terminators on Windows.
Risto Kankkunen %!s(int64=13) %!d(string=hai) anos
pai
achega
b5f3b42ce0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      dulwich/tests/__init__.py

+ 1 - 0
dulwich/tests/__init__.py

@@ -68,6 +68,7 @@ class BlackboxTestCase(TestCase):
         return subprocess.Popen(argv,
             stdout=subprocess.PIPE,
             stdin=subprocess.PIPE, stderr=subprocess.PIPE,
+            universal_newlines=True,
             env=env)