forked from pool/python-falcon
Accepting request 520351 from home:sebix:branches:devel:languages:python
- add patch remove_failing_test.patch removes a broken test OBS-URL: https://build.opensuse.org/request/show/520351 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=18
This commit is contained in:
committed by
Git OBS Bridge
parent
a31e4681f8
commit
e8025eead3
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 2 09:56:45 UTC 2017 - sebix+novell.com@sebix.at
|
||||||
|
|
||||||
|
- add patch remove_failing_test.patch removes a broken test
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Aug 25 15:38:18 UTC 2017 - jengelh@inai.de
|
Fri Aug 25 15:38:18 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
@@ -28,6 +28,8 @@ Url: http://falconframework.org
|
|||||||
Source: https://github.com/falconry/falcon/archive/%{version}.tar.gz
|
Source: https://github.com/falconry/falcon/archive/%{version}.tar.gz
|
||||||
# The file on pypi misses docs/ext, should be fixed in next version
|
# The file on pypi misses docs/ext, should be fixed in next version
|
||||||
#Source: https://files.pythonhosted.org/packages/source/f/falcon/falcon-%%{version}.tar.gz
|
#Source: https://files.pythonhosted.org/packages/source/f/falcon/falcon-%%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM remove_failing_test.patch sebix+novell.com@sebix.at -- removes a broken test
|
||||||
|
Patch0: remove_failing_test.patch
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@@ -71,6 +73,7 @@ HTML documentation including API documentation and changelog for %name.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n falcon-%{version}
|
%setup -q -n falcon-%{version}
|
||||||
|
%patch0 -p1
|
||||||
# remove unwanted shebang
|
# remove unwanted shebang
|
||||||
sed -i '1s/^#!.*//' falcon/bench/bench.py falcon/cmd/print_routes.py
|
sed -i '1s/^#!.*//' falcon/bench/bench.py falcon/cmd/print_routes.py
|
||||||
|
|
||||||
@@ -89,6 +92,7 @@ popd
|
|||||||
%{python_expand %fdupes %{buildroot}%{$python_sitelib}/falcon/}
|
%{python_expand %fdupes %{buildroot}%{$python_sitelib}/falcon/}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
export LANG=en_US.UTF8
|
||||||
%{python_exec setup.py -q test}
|
%{python_exec setup.py -q test}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
29
remove_failing_test.patch
Normal file
29
remove_failing_test.patch
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
--- falcon-1.2.0/tests/test_utils.py 2017-05-02 01:05:49.000000000 +0200
|
||||||
|
+++ falcon-1.2.0/tests/test_utils.py 2017-09-02 11:54:01.484271099 +0200
|
||||||
|
@@ -37,26 +37,6 @@
|
||||||
|
# below.
|
||||||
|
self.uris = _arbitrary_uris(count=100, length=32)
|
||||||
|
|
||||||
|
- def test_deprecated_decorator(self):
|
||||||
|
- msg = 'Please stop using this thing. It is going away.'
|
||||||
|
-
|
||||||
|
- @util.deprecated(msg)
|
||||||
|
- def old_thing():
|
||||||
|
- pass
|
||||||
|
-
|
||||||
|
- if six.PY3:
|
||||||
|
- stream = io.StringIO()
|
||||||
|
- else:
|
||||||
|
- stream = io.BytesIO()
|
||||||
|
-
|
||||||
|
- old_stderr = sys.stderr
|
||||||
|
- sys.stderr = stream
|
||||||
|
-
|
||||||
|
- old_thing()
|
||||||
|
-
|
||||||
|
- sys.stderr = old_stderr
|
||||||
|
- self.assertIn(msg, stream.getvalue())
|
||||||
|
-
|
||||||
|
def test_http_now(self):
|
||||||
|
expected = datetime.utcnow()
|
||||||
|
actual = falcon.http_date_to_dt(falcon.http_now())
|
Reference in New Issue
Block a user