diff --git a/_multibuild b/_multibuild
new file mode 100644
index 0000000..fcc7b97
--- /dev/null
+++ b/_multibuild
@@ -0,0 +1,3 @@
+
+ test
+
diff --git a/python-wcwidth.changes b/python-wcwidth.changes
index 481019c..280905a 100644
--- a/python-wcwidth.changes
+++ b/python-wcwidth.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Wed May 6 02:25:29 UTC 2020 - Steve Kowalik
+
+- Convert to multibuild to break a self-requires loop.
+
-------------------------------------------------------------------
Wed Mar 25 14:31:41 UTC 2020 - pgajdos@suse.com
diff --git a/python-wcwidth.spec b/python-wcwidth.spec
index a0e1932..c4dc192 100644
--- a/python-wcwidth.spec
+++ b/python-wcwidth.spec
@@ -17,6 +17,11 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%if "%{flavor}" == "test"
+%bcond_without test
+%else
+%bcond_with test
+%endif
Name: python-wcwidth
Version: 0.1.9
Release: 0
@@ -25,7 +30,9 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/jquast/wcwidth
Source: https://files.pythonhosted.org/packages/source/w/wcwidth/wcwidth-%{version}.tar.gz
+%if %{with test}
BuildRequires: %{python_module pytest}
+%endif
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -60,7 +67,9 @@ release files, which this project aims to track.
}
%check
+%if %{with test}
%pytest
+%endif
%files %{python_files}
%license LICENSE.txt