8000 Regression in 3.8.3rc1 - error in tests run via doctest · Issue #84784 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Regression in 3.8.3rc1 - error in tests run via doctest #84784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
casevh mannequin opened this issue May 12, 2020 · 3 comments
Closed

Regression in 3.8.3rc1 - error in tests run via doctest #84784

casevh mannequin opened this issue May 12, 2020 · 3 comments
Labels
3.8 (EOL) end of life stdlib Python modules in the Lib dir

Comments

@casevh
Copy link
Mannequin
casevh mannequin commented May 12, 2020
BPO 40604
Nosy @isidentical

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2020-05-12.06:55:45.145>
labels = ['3.8', 'library']
title = 'Regression in 3.8.3rc1 - error in tests run via doctest'
updated_at = <Date 2020-05-12.07:18:54.452>
user = 'https://bugs.python.org/casevh'

bugs.python.org fields:

activity = <Date 2020-05-12.07:18:54.452>
actor = 'BTaskaya'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2020-05-12.06:55:45.145>
creator = 'casevh'
dependencies = []
files = []
hgrepos = []
issue_num = 40604
keywords = []
message_count = 2.0
messages = ['368703', '368704']
nosy_count = 2.0
nosy_names = ['casevh', 'BTaskaya']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue40604'
versions = ['Python 3.8']

@casevh
Copy link
Mannequin Author
casevh mannequin commented May 12, 2020

An error in the gmpy2 test suite was reported at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960201

The test suite is run using doctest and has been running without issues for many years. The first failure occurs when running the following fragment:

>>> x = xmpz(16)
>>> iter = x.iter_bits()
>>> [b for b in iter]
[False, False, False, False, True]

The output is as expected when run interactively on 3.8.3rc1 but generated the following error message:

/home/case/local/lib/python3.8/doctest.py:1336: RuntimeWarning: coroutine '<module>' was never awaited
exec(compile(example.source, filename, "single",
RuntimeWarning: Enable tracemalloc to get the object allocation traceback


File "test_gmpy2_xmpz_misc.txt", line 91, in test_gmpy2_xmpz_misc.txt
Failed example:
[b for b in iter]
Differences (ndiff with -expected +actual):
- [False, False, False, False, True]


Note the runtime warning for doctest.py.

@casevh casevh mannequin added 3.8 (EOL) end of life stdlib Python modules in the Lib dir labels May 12, 2020
@isidentical
Copy link
Member

See bpo-39562

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@kumaraditya303
Copy link
Contributor

Duplicate of #83743

@kumaraditya303 kumaraditya303 marked this as a duplicate of #83743 May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.8 (EOL) end of life stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

2 participants
0