Explorar el Código

Add test for automatic pythonw fallback of outstream/errstream

Sylvia van Os hace 6 años
padre
commit
0da5d5629f
Se han modificado 2 ficheros con 7 adiciones y 0 borrados
  1. 1 0
      appveyor.yml
  2. 6 0
      dulwich/tests/test_porcelain.py

+ 1 - 0
appveyor.yml

@@ -84,6 +84,7 @@ build_script:
 
 test_script:
   - "build.cmd %PYTHON%\\python.exe setup.py test"
+  - "build.cmd %PYTHON%\\pythonw.exe setup.py test"
 
 after_test:
   - "build.cmd %PYTHON%\\python.exe setup.py bdist_wheel"

+ 6 - 0
dulwich/tests/test_porcelain.py

@@ -79,6 +79,12 @@ class ArchiveTests(PorcelainTestCase):
         self.addCleanup(tf.close)
         self.assertEqual([], tf.getnames())
 
+    def test_simple_outstream_errstream_autofallback(self):
+        c1, c2, c3 = build_commit_graph(
+                self.repo.object_store, [[1], [2, 1], [3, 1, 2]])
+        self.repo.refs[b"refs/heads/master"] = c3.id
+        porcelain.archive(self.repo.path, b"refs/heads/master")
+
 
 class UpdateServerInfoTests(PorcelainTestCase):