From eebffb2b5b46dae65eeef8290146112348415221 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 29 Oct 2019 22:01:47 +1100 Subject: tests/basics: Automatically skip tests that use str/bytes modulo-format. --- tests/basics/string_format_modulo_int.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/basics/string_format_modulo_int.py') diff --git a/tests/basics/string_format_modulo_int.py b/tests/basics/string_format_modulo_int.py index d1f29db220..d057522bfc 100644 --- a/tests/basics/string_format_modulo_int.py +++ b/tests/basics/string_format_modulo_int.py @@ -1,5 +1,11 @@ # test string modulo formatting with int values +try: + '' % () +except TypeError: + print("SKIP") + raise SystemExit + # basic cases print("%d" % 10) print("%+d" % 10) -- cgit v1.2.3