summaryrefslogtreecommitdiffhomepage
path: root/test/test_share_fallback.py
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2021-03-25 17:32:53 +0300
committerAndrei Belov <defan@nginx.com>2021-03-25 17:32:53 +0300
commit83d2ce0ae884f73a111f9b1807d5393a150bf116 (patch)
tree2c483a9eae55233df4e308c5232734e03622cee0 /test/test_share_fallback.py
parentd2579d52b9583e5add0a71c6c7fb9f1b0c948a59 (diff)
parent3c969905bd6db6446b5213acb616e8c04ff546f4 (diff)
downloadunit-83d2ce0ae884f73a111f9b1807d5393a150bf116.tar.gz
unit-83d2ce0ae884f73a111f9b1807d5393a150bf116.tar.bz2
Merged with the default branch.1.23.0-1
Diffstat (limited to 'test/test_share_fallback.py')
-rw-r--r--test/test_share_fallback.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_share_fallback.py b/test/test_share_fallback.py
index a02cb1a3..46464670 100644
--- a/test/test_share_fallback.py
+++ b/test/test_share_fallback.py
@@ -1,5 +1,6 @@
import os
+import pytest
from unit.applications.proto import TestApplicationProto
from unit.option import option
@@ -27,7 +28,10 @@ class TestStatic(TestApplicationProto):
)
def teardown_method(self):
- os.chmod(option.temp_dir + '/assets/403', 0o777)
+ try:
+ os.chmod(option.temp_dir + '/assets/403', 0o777)
+ except FileNotFoundError:
+ pass
def action_update(self, conf):
assert 'success' in self.conf(conf, 'routes/0/action')
@@ -116,6 +120,7 @@ class TestStatic(TestApplicationProto):
assert resp['status'] == 200, 'fallback proxy status'
assert resp['body'] == '', 'fallback proxy'
+ @pytest.mark.skip('not yet')
def test_fallback_proxy_loop(self, skip_alert):
skip_alert(
r'open.*/blah/index.html.*failed',