Minor testsuite fixes.

This commit is contained in:
Thomas Moschny 2012-10-22 11:50:49 +02:00
parent 81644b2736
commit adb73172c1
2 changed files with 22 additions and 0 deletions

View 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")

View File

@ -22,6 +22,7 @@ License: MIT and Public Domain
# main package: MIT, except: doc/style.css: Public Domain
URL: http://codespeak.net/py/dist/
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)
BuildArch: noarch
BuildRequires: python-devel
@ -78,6 +79,7 @@ following tools and modules:
%prep
%setup -q -n py-%{version}
%patch0 -p1
# remove shebangs and fix permissions
find -type f -a \( -name '*.py' -o -name 'py.*' \) \
@ -123,9 +125,13 @@ rm -rf doc/_build/html/.buildinfo
%check
%if 0%{?run_check}
PYTHONPATH=%{buildroot}%{python_sitelib} \
LC_ALL="en_US.UTF-8" \
py.test -r s
%if 0%{?with_python3}
pushd %{py3dir}
PYTHONPATH=%{buildroot}%{python3_sitelib} \
LC_ALL="en_US.UTF-8" \
py.test-%{python3_version} -r s
popd
%endif # with_python3
@ -158,6 +164,7 @@ rm -rf %{buildroot}
%changelog
* Sun Oct 21 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.10-2
- Re-enable doc building and testsuite.
- Minor testsuite fixes.
* Sun Oct 21 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.4.10-1
- Update to 1.4.10.