File project.diff of Package python-urllib3

--- python-urllib3.changes.orig
+++ python-urllib3.changes
@@ -1,4 +1,14 @@
 -------------------------------------------------------------------
+Thu Mar  8 11:03:28 UTC 2018 - aplanas@suse.com
+
+- Disable tests in non-SUSE OS
+
+-------------------------------------------------------------------
+Thu Mar  8 10:31:47 UTC 2018 - aplanas@suse.com
+
+- Use %__python3 macro
+
+-------------------------------------------------------------------
 Wed Mar  7 15:52:54 UTC 2018 - aplanas@suse.com
 
 - Allows Recommends and Suggest in Fedora
--- python-urllib3.spec.orig
+++ python-urllib3.spec
@@ -74,7 +74,7 @@ Highlights
 %setup -q -n urllib3-%{version}
 %patch1 -p1
 %patch2 -p1
-%if %(python3 -c "import ssl; print(hasattr(ssl,'PROTOCOL_TLSv1_2'))") == "True"
+%if %(%__python3 -c "import ssl; print(hasattr(ssl,'PROTOCOL_TLSv1_2'))") == "True"
 %patch3 -p1
 %endif
 %patch4 -p1
@@ -85,6 +85,7 @@ Highlights
 %install
 %python_install
 
+%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
 %check
 
 skiplist='not test_select_interrupt_exception and not test_selector_error and not timeout'
@@ -102,6 +103,7 @@ export TRAVIS=1
                 --ignore=test/with_dummyserver/test_poolmanager.py \
                 -k "${skiplist}" \
                 urllib3 test}
+%endif
 
 %files %{python_files}
 %defattr(-,root,root,-)
openSUSE Build Service is sponsored by