|
|
2e06550 |
From 0f57f9fe79fc8b5b070bb92c77dd1feb739c92bc Mon Sep 17 00:00:00 2001
|
|
|
2e06550 |
From: Lumir Balhar <lbalhar@redhat.com>
|
|
|
2e06550 |
Date: Wed, 20 May 2020 08:26:07 +0200
|
|
|
2e06550 |
Subject: [PATCH] remove tests not compatible with python 3.9.0b1
|
|
|
2e06550 |
|
|
|
2e06550 |
---
|
|
|
2e06550 |
IPython/core/tests/test_oinspect.py | 32 -----------------------------
|
|
|
2e06550 |
1 file changed, 32 deletions(-)
|
|
|
2e06550 |
|
|
|
2e06550 |
diff --git a/IPython/core/tests/test_oinspect.py b/IPython/core/tests/test_oinspect.py
|
|
|
2e06550 |
index eba51fd..f59c62f 100644
|
|
|
2e06550 |
--- a/IPython/core/tests/test_oinspect.py
|
|
|
2e06550 |
+++ b/IPython/core/tests/test_oinspect.py
|
|
|
2e06550 |
@@ -381,35 +381,3 @@ def test_render_signature_short():
|
|
|
2e06550 |
short_fun.__name__,
|
|
|
2e06550 |
)
|
|
|
2e06550 |
nt.assert_equal(sig, 'short_fun(a=1)')
|
|
|
2e06550 |
-
|
|
|
2e06550 |
-
|
|
|
2e06550 |
-def test_render_signature_long():
|
|
|
2e06550 |
- from typing import Optional
|
|
|
2e06550 |
-
|
|
|
2e06550 |
- def long_function(
|
|
|
2e06550 |
- a_really_long_parameter: int,
|
|
|
2e06550 |
- and_another_long_one: bool = False,
|
|
|
2e06550 |
- let_us_make_sure_this_is_looong: Optional[str] = None,
|
|
|
2e06550 |
- ) -> bool: pass
|
|
|
2e06550 |
-
|
|
|
2e06550 |
- sig = oinspect._render_signature(
|
|
|
2e06550 |
- signature(long_function),
|
|
|
2e06550 |
- long_function.__name__,
|
|
|
2e06550 |
- )
|
|
|
2e06550 |
- nt.assert_in(sig, [
|
|
|
2e06550 |
- # Python >=3.7
|
|
|
2e06550 |
- '''\
|
|
|
2e06550 |
-long_function(
|
|
|
2e06550 |
- a_really_long_parameter: int,
|
|
|
2e06550 |
- and_another_long_one: bool = False,
|
|
|
2e06550 |
- let_us_make_sure_this_is_looong: Union[str, NoneType] = None,
|
|
|
2e06550 |
-) -> bool\
|
|
|
2e06550 |
-''', # Python <=3.6
|
|
|
2e06550 |
- '''\
|
|
|
2e06550 |
-long_function(
|
|
|
2e06550 |
- a_really_long_parameter:int,
|
|
|
2e06550 |
- and_another_long_one:bool=False,
|
|
|
2e06550 |
- let_us_make_sure_this_is_looong:Union[str, NoneType]=None,
|
|
|
2e06550 |
-) -> bool\
|
|
|
2e06550 |
-''',
|
|
|
2e06550 |
- ])
|
|
|
2e06550 |
--
|
|
|
2e06550 |
2.26.2
|
|
|
2e06550 |
|