Accepting request 620236 from home:aplanas:branches:devel:languages:python

- Add textfsm_test_do_not_relay_on_dic_order.patch to enable
  tests in Python2 and Python3

OBS-URL: https://build.opensuse.org/request/show/620236
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textfsm?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2018-07-02 15:09:42 +00:00
committed by Git OBS Bridge
parent be1c71c399
commit 9be11d56cb
3 changed files with 47 additions and 3 deletions

View File

@@ -25,11 +25,13 @@ License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/google/textfsm
Source: https://github.com/google/textfsm/archive/0.4.1.tar.gz
# PATCH-FIX-UPSTREAM textfsm_test_do_not_relay_on_dic_order.patch https://github.com/google/textfsm/pull/33
Patch0: textfsm_test_do_not_relay_on_dic_order.patch
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
@@ -42,6 +44,7 @@ devices.
%prep
%setup -q -n textfsm-%{version}
%patch0 -p1
%build
%python_build
@@ -54,8 +57,7 @@ devices.
%python_exec clitable_test.py
%python_exec copyable_regex_object_test.py
%python_exec terminal_test.py
# textfsm_test.py is not working under python2
python3 textfsm_test.py
%python_exec textfsm_test.py
%python_exec texttable_test.py
%files %{python_files}