lib-python/3/test/test_future_stmt::unmodified
== PyPy 3.12.13 (a3c6b428e7a8, Jul 09 2026, 07:29:29) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-4.19.90-2202.1.0.0136.oe1.aarch64-aarch64-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_242023æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 3165799802
0:00:00 load avg: 0.59 Run 5 tests sequentially in a single process
0:00:00 load avg: 0.59 [1/5] test_future_stmt.test_future
test_annotation_with_complex_target (test.test_future_stmt.test_future.AnnotationsFutureTestCase.test_annotation_with_complex_target) ... ok
test_annotations (test.test_future_stmt.test_future.AnnotationsFutureTestCase.test_annotations) ... ok
test_annotations_forbidden (test.test_future_stmt.test_future.AnnotationsFutureTestCase.test_annotations_forbidden) ... ok
test_annotations_symbol_table_pass (test.test_future_stmt.test_future.AnnotationsFutureTestCase.test_annotations_symbol_table_pass) ... ok
test_fstring_debug_annotations (test.test_future_stmt.test_future.AnnotationsFutureTestCase.test_fstring_debug_annotations) ... ok
test_get_type_hints_on_func_with_variadic_arg (test.test_future_stmt.test_future.AnnotationsFutureTestCase.test_get_type_hints_on_func_with_variadic_arg) ... ok
test_infinity_numbers (test.test_future_stmt.test_future.AnnotationsFutureTestCase.test_infinity_numbers) ... ok
test_badfuture10 (test.test_future_stmt.test_future.FutureTest.test_badfuture10) ... ok
test_badfuture3 (test.test_future_stmt.test_future.FutureTest.test_badfuture3) ... FAIL
test_badfuture4 (test.test_future_stmt.test_future.FutureTest.test_badfuture4) ... ok
test_badfuture5 (test.test_future_stmt.test_future.FutureTest.test_badfuture5) ... ok
test_badfuture6 (test.test_future_stmt.test_future.FutureTest.test_badfuture6) ... ok
test_badfuture7 (test.test_future_stmt.test_future.FutureTest.test_badfuture7) ... FAIL
test_badfuture8 (test.test_future_stmt.test_future.FutureTest.test_badfuture8) ... FAIL
test_badfuture9 (test.test_future_stmt.test_future.FutureTest.test_badfuture9) ... FAIL
test_ensure_flags_dont_clash (test.test_future_stmt.test_future.FutureTest.test_ensure_flags_dont_clash) ... ok
test_future1 (test.test_future_stmt.test_future.FutureTest.test_future1) ... ok
test_future2 (test.test_future_stmt.test_future.FutureTest.test_future2) ... ok
test_future_multiple_features (test.test_future_stmt.test_future.FutureTest.test_future_multiple_features) ... ok
test_future_multiple_imports (test.test_future_stmt.test_future.FutureTest.test_future_multiple_imports) ... ok
test_future_single_import (test.test_future_stmt.test_future.FutureTest.test_future_single_import) ... ok
test_syntactical_future_repl (test.test_future_stmt.test_future.FutureTest.test_syntactical_future_repl) ... ok
test_unicode_literals_exec (test.test_future_stmt.test_future.FutureTest.test_unicode_literals_exec) ... ok
======================================================================
FAIL: test_badfuture3 (test.test_future_stmt.test_future.FutureTest.test_badfuture3)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_future_stmt/test_future.py", line 58, in test_badfuture3
self.check_syntax_error(cm.exception, "badsyntax_future3", 3, 24)
^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_future_stmt/test_future.py", line 25, in check_syntax_error
self.assertEqual(err.offset, offset)
^^^^^^^^^^^
AssertionError: 1 != 24
======================================================================
FAIL: test_badfuture7 (test.test_future_stmt.test_future.FutureTest.test_badfuture7)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_future_stmt/test_future.py", line 78, in test_badfuture7
self.check_syntax_error(cm.exception, "badsyntax_future7", 3, 54)
^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_future_stmt/test_future.py", line 22, in check_syntax_error
self.assertIn('%s.py, line %d' % (basename, lineno), str(err))
^^^^^^^^
AssertionError: 'badsyntax_future7.py, line 3' not found in '__future__ statements must appear at beginning of file (badsyntax_future7.py, lines 3-4)'
======================================================================
FAIL: test_badfuture8 (test.test_future_stmt.test_future.FutureTest.test_badfuture8)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_future_stmt/test_future.py", line 83, in test_badfuture8
self.check_syntax_error(cm.exception, "badsyntax_future8", 3, 24)
^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_future_stmt/test_future.py", line 25, in check_syntax_error
self.assertEqual(err.offset, offset)
^^^^^^^^^^^
AssertionError: 1 != 24
======================================================================
FAIL: test_badfuture9 (test.test_future_stmt.test_future.FutureTest.test_badfuture9)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_future_stmt/test_future.py", line 88, in test_badfuture9
self.check_syntax_error(cm.exception, "badsyntax_future9", 3, 39)
^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-aarch64/build/lib-python/3/test/test_future_stmt/test_future.py", line 25, in check_syntax_error
self.assertEqual(err.offset, offset)
^^^^^^^^^^^
AssertionError: 1 != 39
----------------------------------------------------------------------
Ran 23 tests in 0.291s
FAILED (failures=4)
0:00:00 load avg: 0.59 [1/5/1] test_future_stmt.test_future failed (4 failures)
0:00:00 load avg: 0.59 [2/5/1] test_future_stmt.test_future_flags
test_attributes (test.test_future_stmt.test_future_flags.FutureTest.test_attributes) ... ok
test_names (test.test_future_stmt.test_future_flags.FutureTest.test_names) ... ok
----------------------------------------------------------------------
Ran 2 tests in 0.001s
OK
0:00:00 load avg: 0.59 [2/5/1] test_future_stmt.test_future_flags passed
0:00:00 load avg: 0.59 [3/5/1] test_future_stmt.test_future_multiple_features
test_print_function (test.test_future_stmt.test_future_multiple_features.TestMultipleFeatures.test_print_function) ... ok
test_unicode_literals (test.test_future_stmt.test_future_multiple_features.TestMultipleFeatures.test_unicode_literals) ... ok
----------------------------------------------------------------------
Ran 2 tests in 0.000s
OK
0:00:00 load avg: 0.59 [3/5/1] test_future_stmt.test_future_multiple_features passed
0:00:00 load avg: 0.59 [4/5/1] test_future_stmt.test_future_multiple_imports
test_unicode_literals (test.test_future_stmt.test_future_multiple_imports.Tests.test_unicode_literals) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
0:00:00 load avg: 0.59 [4/5/1] test_future_stmt.test_future_multiple_imports passed
0:00:00 load avg: 0.59 [5/5/1] test_future_stmt.test_future_single_import
test_floor_div_operator (test.test_future_stmt.test_future_single_import.TestFuture.test_floor_div_operator) ... ok
test_nested_scopes (test.test_future_stmt.test_future_single_import.TestFuture.test_nested_scopes) ... ok
test_true_div_as_default (test.test_future_stmt.test_future_single_import.TestFuture.test_true_div_as_default) ... ok
----------------------------------------------------------------------
Ran 3 tests in 0.001s
OK
0:00:00 load avg: 0.59 [5/5/1] test_future_stmt.test_future_single_import passed
== Tests result: FAILURE ==
1 test failed:
test_future_stmt.test_future
4 tests OK.
Total duration: 944 ms
Total tests: run=31 failures=4
Total test files: run=5/5 failed=1
Result: FAILURE
test test_future_stmt.test_future failed
builder: pypy-c-jit-linux-aarch64 build #2943+
test: lib-python/3/test/test_future_stmt::unmodified