Minor testsuite fixes.
This commit is contained in:
parent
81644b2736
commit
adb73172c1
15
py-1.4.10-fix-test_svnauth.patch
Normal file
15
py-1.4.10-fix-test_svnauth.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff -r 4532fe5ee826808805b373e9296d2baf4db254d9 -r 1060ea1c96dd9dfb031bd1987ceb2bf437a096a3 testing/path/test_svnauth.py
|
||||||
|
--- a/testing/path/test_svnauth.py Fri Oct 19 11:00:30 2012 +0200
|
||||||
|
+++ b/testing/path/test_svnauth.py Sun Oct 21 20:37:54 2012 +0200
|
||||||
|
@@ -261,7 +261,10 @@
|
||||||
|
u.propget('foo')
|
||||||
|
assert '--username="foo" --password="bar"' in u.commands[0]
|
||||||
|
|
||||||
|
-class pytest_funcarg__setup:
|
||||||
|
+def pytest_funcarg__setup(request):
|
||||||
|
+ return Setup(request)
|
||||||
|
+
|
||||||
|
+class Setup:
|
||||||
|
def __init__(self, request):
|
||||||
|
if not svnbin:
|
||||||
|
py.test.skip("svn binary required")
|
@ -22,6 +22,7 @@ License: MIT and Public Domain
|
|||||||
# main package: MIT, except: doc/style.css: Public Domain
|
# main package: MIT, except: doc/style.css: Public Domain
|
||||||
URL: http://codespeak.net/py/dist/
|
URL: http://codespeak.net/py/dist/
|
||||||
Source: http://pypi.python.org/packages/source/p/py/py-%{version}.zip
|
Source: http://pypi.python.org/packages/source/p/py/py-%{version}.zip
|
||||||
|
Patch0: py-1.4.10-fix-test_svnauth.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
@ -78,6 +79,7 @@ following tools and modules:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n py-%{version}
|
%setup -q -n py-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
# remove shebangs and fix permissions
|
# remove shebangs and fix permissions
|
||||||
find -type f -a \( -name '*.py' -o -name 'py.*' \) \
|
find -type f -a \( -name '*.py' -o -name 'py.*' \) \
|
||||||
@ -123,9 +125,13 @@ rm -rf doc/_build/html/.buildinfo
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?run_check}
|
%if 0%{?run_check}
|
||||||
|
PYTHONPATH=%{buildroot}%{python_sitelib} \
|
||||||
|
LC_ALL="en_US.UTF-8" \
|
||||||
py.test -r s
|
py.test -r s
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
|
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
||||||
|
LC_ALL="en_US.UTF-8" \
|
||||||
py.test-%{python3_version} -r s
|
py.test-%{python3_version} -r s
|
||||||
popd
|
popd
|
||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
@ -158,6 +164,7 @@ rm -rf %{buildroot}
|
|||||||
%changelog
|
%changelog
|
||||||
* Sun Oct 21 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.10-2
|
* Sun Oct 21 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.10-2
|
||||||
- Re-enable doc building and testsuite.
|
- Re-enable doc building and testsuite.
|
||||||
|
- Minor testsuite fixes.
|
||||||
|
|
||||||
* Sun Oct 21 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.10-1
|
* Sun Oct 21 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.10-1
|
||||||
- Update to 1.4.10.
|
- Update to 1.4.10.
|
||||||
|
Loading…
Reference in New Issue
Block a user