From d955d01d2f8eba2bc8ef396ba2f2da7384c151f9 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Fri, 11 Aug 2017 14:53:57 -0700 Subject: [PATCH] Fix _q_format() test for 'r' conversion, add 'a' conversion test. --- quixote/ptl/test/test_ptl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quixote/ptl/test/test_ptl.py b/quixote/ptl/test/test_ptl.py index b97e7b2..b01c265 100755 --- a/quixote/ptl/test/test_ptl.py +++ b/quixote/ptl/test/test_ptl.py @@ -81,7 +81,8 @@ class Test (UTest): assert _q_format('&') == '&' assert _q_format(htmltext('&')) == '&' assert _q_format('a', ord('r')) == "'a'" - assert _q_format(htmltext('a'), ord('r')) == "'a'" + assert _q_format('\xff', ord('r')) == "'\xff'" + assert _q_format('\xff', ord('a')) == "'\\xff'" assert _q_format(1, -1, '_>2') == '_1' assert _q_format(1, -1, '_>2') == '_1' assert _q_format(64, -1, 'c') == '@'