Explorar el 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 hace 13 años
padre
commit
293de1726a
Se han modificado 1 ficheros con 1 adiciones y 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)