<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Marcin,<br>
<br>
I have some problems running nose on Windows. I've filed a bug
report, but it's been a long time and no movement. I don't have
time to troubleshoot why it's not working, so py.test seems like
another option.<br>
<br>
Some projects are specific to one test runner or another due to
custom setup/hooks/plugins needed. I figured it would be good to
learn both of them.<br>
<br>
Also, I did figure it out eventually. --tb=native is what I
want. I then set that in a configuration file in my home
directory:<br>
<br>
<a class="moz-txt-link-freetext"
href="http://pytest.org/latest/customize.html#adding-default-options">http://pytest.org/latest/customize.html#adding-default-options</a><br>
<br>
Cheers.<br>
<div class="moz-signature"><br>
<b>Randy Syring</b><br>
<small>Husband | Father | Redeemed Sinner</small><br>
<br>
<i><small>"For what does it profit a man to gain the whole world<br>
and forfeit his soul?" (Mark 8:36 ESV)</small></i> <br>
<br>
</div>
On 07/22/2014 01:42 PM, Marcin Tustin wrote:<br>
</div>
<blockquote
cite="mid:00BB772A2997564C8A33493B6E389CDA6EFD55@NHPDAG002.dt.inc"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">This
isn’t meant to be snide: if you want nose-style output, why
not use nose? What’s the draw of py.test?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Marcin<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
<a class="moz-txt-link-abbreviated"
href="mailto:testing-in-python-bounces@lists.idyll.org">testing-in-python-bounces@lists.idyll.org</a>
[<a class="moz-txt-link-freetext"
href="mailto:testing-in-python-bounces@lists.idyll.org">mailto:testing-in-python-bounces@lists.idyll.org</a>]
<b>On Behalf Of </b>Randy Syring<br>
<b>Sent:</b> Tuesday, July 22, 2014 1:31 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated"
href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
<b>Subject:</b> [TIP] Make py.test output more like
nose?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I've been trying various combinations of
command line settings for py.test to get the output to be more
like nose when exceptions are encountered. Currently, py.test
is showing me several frames of information and the source
code related to the traceback. But all I want is what nose
gives me 1) a dot for pass and 2) a normal python traceback
for failure.<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<b>Randy Syring</b><br>
<span style="font-size:10.0pt">Husband | Father | Redeemed
Sinner</span><br>
<br>
<i><span style="font-size:10.0pt">"For what does it profit a
man to gain the whole world<br>
and forfeit his soul?" (Mark 8:36 ESV)</span></i> <o:p></o:p></p>
</div>
</div>
</blockquote>
<br>
</body>
</html>