Bug 1837372 - ipython fails to build with Python 3.9: FAIL: IPython.core.tests.test_oinspect.test_render_signature_long
Summary: ipython fails to build with Python 3.9: FAIL: IPython.core.tests.test_oinspec...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ipython
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-05-19 11:38 UTC by Miro Hrončok
Modified: 2020-05-20 06:55 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-20 06:55:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2020-05-19 11:38:19 UTC
ipython fails to build with Python 3.9.0b1.

FAIL: IPython.core.tests.test_oinspect.test_render_signature_long
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/builddir/build/BUILDROOT/ipython-7.14.0-2.fc33.x86_64/usr/lib/python3.9/site-packages/IPython/core/tests/test_oinspect.py", line 399, in test_render_signature_long
    nt.assert_in(sig, [
AssertionError: 'long_function(\n    a_really_long_parameter: int,\n    and_another_long_one: bool = False,\n    let_us_make_sure_this_is_looong: Optional[str] = None,\n) -> bool' not found in ['long_function(\n    a_really_long_parameter: int,\n    and_another_long_one: bool = False,\n    let_us_make_sure_this_is_looong: Union[str, NoneType] = None,\n) -> bool', 'long_function(\n    a_really_long_parameter:int,\n    and_another_long_one:bool=False,\n    let_us_make_sure_this_is_looong:Union[str, NoneType]=None,\n) -> bool']
    """Fail immediately, with the given message."""
>>  raise self.failureException("'long_function(\\n    a_really_long_parameter: int,\\n    and_another_long_one: bool = False,\\n    let_us_make_sure_this_is_looong: Optional[str] = None,\\n) -> bool' not found in ['long_function(\\n    a_really_long_parameter: int,\\n    and_another_long_one: bool = False,\\n    let_us_make_sure_this_is_looong: Union[str, NoneType] = None,\\n) -> bool', 'long_function(\\n    a_really_long_parameter:int,\\n    and_another_long_one:bool=False,\\n    let_us_make_sure_this_is_looong:Union[str, NoneType]=None,\\n) -> bool']")
    

This report is automated and not very verbose, sorry about that.

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01394887-ipython/

For all our attempts to build ipython with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/ipython/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.9:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Lumír Balhar 2020-05-19 17:51:26 UTC
This seems to be already fixed upstream https://github.com/ipython/ipython/commit/7432f3c8d7179034975725d95879bb00e17defeb#diff-bbf32c098874ada0fe3a6e139fc35e34

I'll skip the test and wait for a new release.

Comment 2 Miro Hrončok 2020-05-19 18:13:01 UTC
Thank you.


Note You need to log in before you can comment on or make changes to this bug.