Remove (or integrate to CI/pyperformance) Module/_decimal/tests
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
This is a follow-up of #115119.
The bench.py script already partially integrated to the pyperformance, see https://github.com/python/pyperformance/issues/473.
The Modules/_decimal/tests/deccheck.py currently is broken. Even with the patch
diff --git a/Modules/_decimal/tests/deccheck.py b/Modules/_decimal/tests/deccheck.py
index bf277dd6879..b276700bc01 100644
--- a/Modules/_decimal/tests/deccheck.py
+++ b/Modules/_decimal/tests/deccheck.py
@@ -53,6 +53,8 @@
from formathelper import rand_format, rand_locale
from _pydecimal import _dec_from_triple
+sys.set_int_max_str_digits(0)
+
C = import_fresh_module('decimal', fresh=['_decimal'])
P = import_fresh_module('decimal', blocked=['_decimal'])
EXIT_STATUS = 0
I still got
$ ./python Modules/_decimal/tests/deccheck.py --short
Random seed: 1778644369
testing __abs__ ...
prec: 3 emin: -3 emax: 3
[...]
testing __hash__ ...
prec: 3 emin: -3 emax: 3
Traceback (most recent call last):
[...]
File "/home/sk/src/cpython/Modules/_decimal/tests/deccheck.py", line 570, in skip_error
return getattr(shandler, t.funcname, shandler.default)(t)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: 'NoneType' object is not callable
Probably these tests now are partially overlap with the CI tests. I think we should investigate this and merge tests or just run deccheck.py as part of CPython test suite.
Linked PRs
- gh-155198
- gh-155261
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia da Modules/_decimal/tests/deccheck.py e riproduci il fallimento mostrato di ./python Modules/_decimal/tests/deccheck.py --short. Confronta questi test con i test CI sovrapposti e con l’integrazione parziale di pyperformance indicata in issue #473. Il lavoro è completato quando la sovrapposizione è stata risolta e deccheck.py è stato integrato nel workflow di test oppure rimosso.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- ci-cd, testing-qa
- Tipo di issue
- Refactoring
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100