[py-svn] commit/pytest: RonnyPfannschmidt: adapt the junit xml escaping test to my escaping changes

Bitbucket commits-noreply at bitbucket.org
Mon Sep 3 09:54:16 CEST 2012


1 new commit in pytest:


https://bitbucket.org/hpk42/pytest/changeset/6dcfb470cfb7/
changeset:   6dcfb470cfb7
user:        RonnyPfannschmidt
date:        2012-09-03 09:54:02
summary:     adapt the junit xml escaping test to my escaping changes
affected #:  1 file

diff -r 00fb4f72c38ac921cd9ea3612f0de15878987536 -r 6dcfb470cfb7ddba4bec8fb486408abe4be0603e testing/test_junitxml.py
--- a/testing/test_junitxml.py
+++ b/testing/test_junitxml.py
@@ -374,14 +374,14 @@
 
 
     for i in invalid:
-        got = bin_xml_escape(unichr(i))
+        got = bin_xml_escape(unichr(i)).uniobj
         if i <= 0xFF:
             expected = '#x%02X' % i
         else:
             expected = '#x%04X' % i
         assert got == expected
     for i in valid:
-        assert chr(i) == bin_xml_escape(unichr(i))
+        assert chr(i) == bin_xml_escape(unichr(i)).uniobj
 
 def test_logxml_path_expansion():
     from _pytest.junitxml import LogXML

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the pytest-commit mailing list