[Pytest-commit] commit/pytest: 4 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Jul 15 22:17:19 CEST 2014


4 new commits in pytest:

https://bitbucket.org/hpk42/pytest/commits/851daff059d5/
Changeset:   851daff059d5
User:        wooparadog
Date:        2014-04-23 08:50:21
Summary:     Also replace `report.longrepr` with `bin_xml_escape`ed skipreason
Affected #:  1 file

diff -r 229f3213f7a629f547e6b89a20263a41611807a1 -r 851daff059d5fd956fda8d9af50b254d01cd29d8 _pytest/junitxml.py
--- a/_pytest/junitxml.py
+++ b/_pytest/junitxml.py
@@ -162,6 +162,7 @@
             filename, lineno, skipreason = report.longrepr
             if skipreason.startswith("Skipped: "):
                 skipreason = bin_xml_escape(skipreason[9:])
+                report.longrepr = filename, lineno, skipreason
             self.append(
                 Junit.skipped("%s:%s: %s" % report.longrepr,
                               type="pytest.skip",


https://bitbucket.org/hpk42/pytest/commits/f3685129dbaa/
Changeset:   f3685129dbaa
User:        wooparadog
Date:        2014-04-23 09:38:40
Summary:     Use processced skipreason for generating skip Junit node
Affected #:  1 file

diff -r 851daff059d5fd956fda8d9af50b254d01cd29d8 -r f3685129dbaad82c8e56caf1b03da91bd04e64e4 _pytest/junitxml.py
--- a/_pytest/junitxml.py
+++ b/_pytest/junitxml.py
@@ -162,9 +162,8 @@
             filename, lineno, skipreason = report.longrepr
             if skipreason.startswith("Skipped: "):
                 skipreason = bin_xml_escape(skipreason[9:])
-                report.longrepr = filename, lineno, skipreason
             self.append(
-                Junit.skipped("%s:%s: %s" % report.longrepr,
+                Junit.skipped("%s:%s: %s" % (filename, lineno, skipreason),
                               type="pytest.skip",
                               message=skipreason
                 ))


https://bitbucket.org/hpk42/pytest/commits/a3ef32bda54e/
Changeset:   a3ef32bda54e
User:        wooparadog
Date:        2014-04-24 04:45:39
Summary:     Add test for skipped case with utf-8 message
Affected #:  1 file

diff -r f3685129dbaad82c8e56caf1b03da91bd04e64e4 -r a3ef32bda54e36006ff16b46473afb6caf1ac1d2 testing/test_junitxml.py
--- a/testing/test_junitxml.py
+++ b/testing/test_junitxml.py
@@ -494,6 +494,8 @@
     log.append_error(report)
     report.longrepr = "filename", 1, ustr
     log.append_skipped(report)
+    report.longrepr = "filename", 1, "Skipped: 卡嘣嘣"
+    log.append_skipped(report)
     report.wasxfail = ustr
     log.append_skipped(report)
     log.pytest_sessionfinish()


https://bitbucket.org/hpk42/pytest/commits/bc61fe662fa3/
Changeset:   bc61fe662fa3
User:        hpk42
Date:        2014-07-15 22:17:15
Summary:     Merged in wooparadog/pytest (pull request #163)

Also replace `report.longrepr` with `bin_xml_escape`ed skipreason
Affected #:  2 files

diff -r 2bc0f17141418719af8808f25bcd24d70baa0f03 -r bc61fe662fa32521eab0b6f2c4ca427bdac0cd1f _pytest/junitxml.py
--- a/_pytest/junitxml.py
+++ b/_pytest/junitxml.py
@@ -163,7 +163,7 @@
             if skipreason.startswith("Skipped: "):
                 skipreason = bin_xml_escape(skipreason[9:])
             self.append(
-                Junit.skipped("%s:%s: %s" % report.longrepr,
+                Junit.skipped("%s:%s: %s" % (filename, lineno, skipreason),
                               type="pytest.skip",
                               message=skipreason
                 ))

diff -r 2bc0f17141418719af8808f25bcd24d70baa0f03 -r bc61fe662fa32521eab0b6f2c4ca427bdac0cd1f testing/test_junitxml.py
--- a/testing/test_junitxml.py
+++ b/testing/test_junitxml.py
@@ -494,6 +494,8 @@
     log.append_error(report)
     report.longrepr = "filename", 1, ustr
     log.append_skipped(report)
+    report.longrepr = "filename", 1, "Skipped: 卡嘣嘣"
+    log.append_skipped(report)
     report.wasxfail = ustr
     log.append_skipped(report)
     log.pytest_sessionfinish()

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