Message371871
| Author |
vstinner |
| Recipients |
vstinner |
| Date |
2020年06月19日.10:22:34 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1592562154.53.0.0111619252983.issue41034@roundup.psfhosted.org> |
| In-reply-to |
| Content |
I tried to check for reference leaks, but running test_builtin twice fails:
$ ./python -m test -R 3:3 test_builtin
0:00:00 load avg: 2.18 Run tests sequentially
0:00:00 load avg: 2.18 [1/1] test_builtin
beginning 6 repetitions
123456
.test test_builtin failed -- multiple errors occurred; run in verbose mode for details
test_builtin failed
== Tests result: FAILURE ==
1 test failed:
test_builtin
Total duration: 1.3 sec
Tests result: FAILURE
The error comes from PtyTests, but the issue is only triggered when builtins.float.hex is also run:
$ ./python -m test test_builtin test_builtin -m test.test_builtin.PtyTests.test_input_tty_non_ascii_unicode_errors -m builtins.float.hex -v
== CPython 3.10.0a0 (heads/master:310f6aa7db, Jun 19 2020, 12:18:54) [GCC 10.1.1 20200507 (Red Hat 10.1.1-1)]
== Linux-5.6.18-300.fc32.x86_64-x86_64-with-glibc2.31 little-endian
== cwd: /home/vstinner/python/master/build/test_python_122646
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
0:00:00 load avg: 0.60 Run tests sequentially
0:00:00 load avg: 0.60 [1/2] test_builtin
test_input_tty_non_ascii_unicode_errors (test.test_builtin.PtyTests) ... ok
hex (builtins.float)
Doctest: builtins.float.hex ... ok
----------------------------------------------------------------------
Ran 2 tests in 0.009s
OK
0:00:00 load avg: 0.63 [2/2] test_builtin
test_input_tty_non_ascii_unicode_errors (test.test_builtin.PtyTests) ... FAIL
hex (builtins.float)
Doctest: builtins.float.hex ... ok
======================================================================
FAIL: test_input_tty_non_ascii_unicode_errors (test.test_builtin.PtyTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vstinner/python/master/Lib/test/test_builtin.py", line 2105, in test_input_tty_non_ascii_unicode_errors
self.check_input_tty("prompté", b"quux\xe9", "ascii")
File "/home/vstinner/python/master/Lib/test/test_builtin.py", line 2092, in check_input_tty
self.assertEqual(input_result, expected)
AssertionError: 'quux' != 'quux\udce9'
- quux
+ quux\udce9
? +
----------------------------------------------------------------------
Ran 2 tests in 0.011s
FAILED (failures=1)
test test_builtin failed
test_builtin failed
== Tests result: FAILURE ==
1 test OK.
1 test failed:
test_builtin
Total duration: 762 ms
Tests result: FAILURE |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2020年06月19日 10:22:34 | vstinner | set | recipients:
+ vstinner |
| 2020年06月19日 10:22:34 | vstinner | set | messageid: <1592562154.53.0.0111619252983.issue41034@roundup.psfhosted.org> |
| 2020年06月19日 10:22:34 | vstinner | link | issue41034 messages |
| 2020年06月19日 10:22:34 | vstinner | create |
|