From b944fb9145c7014251119cc5714593ce10381f49 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 2 Sep 2017 14:09:15 +0200 Subject: [PATCH] Fix a test around rb/br string literals. --- test/test_tokenize.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_tokenize.py b/test/test_tokenize.py index efef732..bd62d95 100644 --- a/test/test_tokenize.py +++ b/test/test_tokenize.py @@ -172,9 +172,9 @@ def test_ur_literals(): check('Ur""', is_literal=not py_version >= 30) check('UR""', is_literal=not py_version >= 30) check('bR""') - # Starting with Python 3.3 this ordering is also possible, but we just - # enable it for all versions. It doesn't hurt. - check('Rb""') + # Starting with Python 3.3 this ordering is also possible. + if py_version >= 33: + check('Rb""') # Starting with Python 3.6 format strings where introduced. check('fr""', is_literal=py_version >= 36) check('rF""', is_literal=py_version >= 36)