Add test for automatic pythonw fallback of outstream/errstream
authorSylvia van Os <sylvia@hackerchick.me>
Tue, 21 Aug 2018 11:36:45 +0000 (13:36 +0200)
committerSylvia van Os <sylvia@hackerchick.me>
Tue, 21 Aug 2018 12:01:47 +0000 (14:01 +0200)
appveyor.yml
dulwich/tests/test_porcelain.py

index c401fb86425ef260a20e88a51f267ad7a3f8f35a..250320a173b4419691048d9716070c8e53d0f680 100644 (file)
@@ -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"
index 49cf1d76338bd35bac2f0b0302ef67fd080c098e..db913eb2aa5b8875c13a80cbaa06e866207436c1 100644 (file)
@@ -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):