https://github.com/python/cpython/commit/1656dfbdf7044fd79127bbb79711f28f8d3fc381
commit: 1656dfbdf7044fd79127bbb79711f28f8d3fc381
branch: main
author: Shahar Naveh <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-07-01T13:20:38+02:00
summary:
Use `@force_not_colorized` in `test_syntactical_future_repl` (#152749)
files:
M Lib/test/test_future_stmt/test_future.py
diff --git a/Lib/test/test_future_stmt/test_future.py
b/Lib/test/test_future_stmt/test_future.py
index faa3a2bfe121dc6..acd8d76dc90a293 100644
--- a/Lib/test/test_future_stmt/test_future.py
+++ b/Lib/test/test_future_stmt/test_future.py
@@ -3,7 +3,7 @@
import __future__
import ast
import unittest
-from test.support import import_helper
+from test.support import force_not_colorized, import_helper
from test.support.script_helper import spawn_python, kill_python
from textwrap import dedent
import os
@@ -176,6 +176,7 @@ def test_unicode_literals_exec(self):
exec("from __future__ import unicode_literals; x = ''", {}, scope)
self.assertIsInstance(scope["x"], str)
+ @force_not_colorized
def test_syntactical_future_repl(self):
p = spawn_python('-i')
p.stdin.write(b"from __future__ import barry_as_FLUFL\n")
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]