aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authoreustas <eustas.ru@gmail.com>2016-06-03 11:12:12 +0200
committereustas <eustas.ru@gmail.com>2016-06-03 11:12:12 +0200
commitbb6f5fea46442730d72bfe5b70b83f64d89c9e7c (patch)
tree7fdcacc61f217ab10980f1fd3773a2aa6288d761 /python
parent37984adb6a39ba95e2f19ef177321adbe34bd38f (diff)
parentbd88e3cb8d876436d2b81f3fe30c3be052002e53 (diff)
downloadbrotli-bb6f5fea46442730d72bfe5b70b83f64d89c9e7c.zip
brotli-bb6f5fea46442730d72bfe5b70b83f64d89c9e7c.tar.gz
brotli-bb6f5fea46442730d72bfe5b70b83f64d89c9e7c.tar.bz2
Merge pull request #336 from anthrotype/upload-sdist
appveyor: also upload source distribution packages to Github Releases
Diffstat (limited to 'python')
-rwxr-xr-xpython/tests/compatibility_test.py5
-rw-r--r--python/tests/custom_dictionary_test.py5
-rwxr-xr-xpython/tests/roundtrip_test.py5
3 files changed, 14 insertions, 1 deletions
diff --git a/python/tests/compatibility_test.py b/python/tests/compatibility_test.py
index 668c9ec..b6dbf77 100755
--- a/python/tests/compatibility_test.py
+++ b/python/tests/compatibility_test.py
@@ -24,4 +24,7 @@ for filename in glob.glob("testdata/*.compressed*"):
env=TEST_ENV)
if diff_q(uncompressed, expected) != 0:
sys.exit(1)
- os.unlink(uncompressed)
+ try:
+ os.unlink(uncompressed)
+ except OSError:
+ pass
diff --git a/python/tests/custom_dictionary_test.py b/python/tests/custom_dictionary_test.py
index afbf07a..34a44bd 100644
--- a/python/tests/custom_dictionary_test.py
+++ b/python/tests/custom_dictionary_test.py
@@ -34,3 +34,8 @@ for filename in INPUTS.splitlines():
uncompressed, "--custom-dictionary", filename], env=TEST_ENV)
if diff_q(filename, uncompressed) != 0:
sys.exit(1)
+ try:
+ os.unlink(compressed)
+ os.unlink(uncompressed)
+ except OSError:
+ pass
diff --git a/python/tests/roundtrip_test.py b/python/tests/roundtrip_test.py
index 719a7b7..02c784d 100755
--- a/python/tests/roundtrip_test.py
+++ b/python/tests/roundtrip_test.py
@@ -41,3 +41,8 @@ for filename in INPUTS.splitlines():
env=TEST_ENV)
if diff_q(filename, uncompressed) != 0:
sys.exit(1)
+ try:
+ os.unlink(compressed)
+ os.unlink(uncompressed)
+ except OSError:
+ pass