]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109485: Further improve `test_future_stmt` tests (#109486)
authorNikita Sobolev <mail@sobolevn.me>
Tue, 19 Sep 2023 12:01:59 +0000 (15:01 +0300)
committerGitHub <noreply@github.com>
Tue, 19 Sep 2023 12:01:59 +0000 (14:01 +0200)
commit94c95d42a3b74729ee775f583fb7951f05d16c77
tree1914282c26600522e7682e94becc198a70cfd0a0
parent59f32a785fbce76a0fa02fe6d671813057714a0a
gh-109485: Further improve `test_future_stmt` tests (#109486)

Add assertSyntaxError() which run tests with an additional docstring
and without docstring, and checks for the error message.
Lib/test/test_future_stmt/badsyntax_future.py [moved from Lib/test/test_future_stmt/badsyntax_future10.py with 100% similarity]
Lib/test/test_future_stmt/badsyntax_future3.py [deleted file]
Lib/test/test_future_stmt/badsyntax_future4.py [deleted file]
Lib/test/test_future_stmt/badsyntax_future5.py [deleted file]
Lib/test/test_future_stmt/badsyntax_future6.py [deleted file]
Lib/test/test_future_stmt/badsyntax_future7.py [deleted file]
Lib/test/test_future_stmt/badsyntax_future8.py [deleted file]
Lib/test/test_future_stmt/badsyntax_future9.py [deleted file]
Lib/test/test_future_stmt/import_nested_scope_twice.py [moved from Lib/test/test_future_stmt/future_test1.py with 100% similarity]
Lib/test/test_future_stmt/nested_scope.py [moved from Lib/test/test_future_stmt/future_test2.py with 100% similarity]
Lib/test/test_future_stmt/test_future.py