From 2e065507c958b5cc9ca8fc52db078a799daeb47e Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: May 20 2020 06:36:39 +0000 Subject: Remove tests not compatible with Python 3.9.0b1 (#1837372) --- diff --git a/ipython.spec b/ipython.spec index a49bc6e..58e3e61 100644 --- a/ipython.spec +++ b/ipython.spec @@ -3,7 +3,7 @@ Name: ipython Version: 7.14.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: An enhanced interactive Python shell # See bug #603178 for a quick overview for the choice of licenses @@ -18,6 +18,9 @@ Source0: %pypi_source Patch0: remove-a-part-of-a-test-which-needs-internet.patch # Temporarily remove tests not compatible with the latest Python 3.9.0a6 Patch1: remove-tests-not-compatible-with-Python-3.9.0a6.patch +# Temporarily remove tests not compatible with the latest Python 3.9.0b1 +# Already fixed upstream: https://github.com/ipython/ipython/commit/7432f3c8d7179034975725d95879bb00e17defeb#diff-bbf32c098874ada0fe3a6e139fc35e34 +Patch2: remove-tests-not-compatible-with-Python-3.9.0b1.patch BuildArch: noarch BuildRequires: python3-devel @@ -237,6 +240,9 @@ popd %changelog +* Wed May 20 2020 Lumír Balhar - 7.14.0-3 +- Remove tests not compatible with Python 3.9.0b1 (#1837372) + * Tue May 05 2020 Lumír Balhar - 7.14.0-2 - Remove tests not compatible with Python 3.9.0a6 (#1831182) diff --git a/remove-tests-not-compatible-with-Python-3.9.0b1.patch b/remove-tests-not-compatible-with-Python-3.9.0b1.patch new file mode 100644 index 0000000..651d3e9 --- /dev/null +++ b/remove-tests-not-compatible-with-Python-3.9.0b1.patch @@ -0,0 +1,52 @@ +From 0f57f9fe79fc8b5b070bb92c77dd1feb739c92bc Mon Sep 17 00:00:00 2001 +From: Lumir Balhar +Date: Wed, 20 May 2020 08:26:07 +0200 +Subject: [PATCH] remove tests not compatible with python 3.9.0b1 + +--- + IPython/core/tests/test_oinspect.py | 32 ----------------------------- + 1 file changed, 32 deletions(-) + +diff --git a/IPython/core/tests/test_oinspect.py b/IPython/core/tests/test_oinspect.py +index eba51fd..f59c62f 100644 +--- a/IPython/core/tests/test_oinspect.py ++++ b/IPython/core/tests/test_oinspect.py +@@ -381,35 +381,3 @@ def test_render_signature_short(): + short_fun.__name__, + ) + nt.assert_equal(sig, 'short_fun(a=1)') +- +- +-def test_render_signature_long(): +- from typing import Optional +- +- def long_function( +- a_really_long_parameter: int, +- and_another_long_one: bool = False, +- let_us_make_sure_this_is_looong: Optional[str] = None, +- ) -> bool: pass +- +- sig = oinspect._render_signature( +- signature(long_function), +- long_function.__name__, +- ) +- nt.assert_in(sig, [ +- # Python >=3.7 +- '''\ +-long_function( +- a_really_long_parameter: int, +- and_another_long_one: bool = False, +- let_us_make_sure_this_is_looong: Union[str, NoneType] = None, +-) -> bool\ +-''', # Python <=3.6 +- '''\ +-long_function( +- a_really_long_parameter:int, +- and_another_long_one:bool=False, +- let_us_make_sure_this_is_looong:Union[str, NoneType]=None, +-) -> bool\ +-''', +- ]) +-- +2.26.2 +