This file is indexed.

/usr/share/doc/python-pytest-doc/html/changelog.html is in python-pytest-doc 2.6.3-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Changelog history</title>
    
    <link rel="stylesheet" href="_static/flasky.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '2.6.2',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="shortcut icon" href="_static/pytest1favi.ico"/>
    <link rel="top" title="None" href="index.html" />
    <link rel="prev" title="py.test 2.0.0: asserts++, unittest++, reporting++, config++, docs++" href="announce/release-2.0.0.html" />
   
  
  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">

  </head>
  <body>
  
  

    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="announce/release-2.0.0.html" title="py.test 2.0.0: asserts++, unittest++, reporting++, config++, docs++"
             accesskey="P">previous</a></li>
        <li><a href="contents.html">pytest-2.6.2</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="changelog-history">
<span id="changelog"></span><h1>Changelog history<a class="headerlink" href="#changelog-history" title="Permalink to this headline"></a></h1>
<div class="section" id="id1">
<h2>2.6.3<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue575: xunit-xml was reporting collection errors as failures
instead of errors, thanks Oleg Sinyavskiy.</li>
<li>fix issue582: fix setuptools example, thanks Laszlo Papp and Ronny
Pfannschmidt.</li>
<li>Fix infinite recursion bug when pickling capture.EncodedFile, thanks
Uwe Schmitt.</li>
<li>fix issue589: fix bad interaction with numpy and others when showing
exceptions.  Check for precise &#8220;maximum recursion depth exceed&#8221; exception
instead of presuming any RuntimeError is that one (implemented in py
dep).  Thanks Charles Cloud for analysing the issue.</li>
<li>fix conftest related fixture visibility issue: when running with a
CWD outside a test package pytest would get fixture discovery wrong.
Thanks to Wolfgang Schnerring for figuring out a reproducable example.</li>
<li>Introduce pytest_enter_pdb hook (needed e.g. by pytest_timeout to cancel the
timeout when interactively entering pdb).  Thanks Wolfgang Schnerring.</li>
<li>check xfail/skip also with non-python function test items. Thanks
Floris Bruynooghe.</li>
</ul>
</div>
<div class="section" id="id2">
<h2>2.6.2<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Added function pytest.freeze_includes(), which makes it easy to embed
pytest into executables using tools like cx_freeze.
See docs for examples and rationale. Thanks Bruno Oliveira.</li>
<li>Improve assertion rewriting cache invalidation precision.</li>
<li>fixed issue561: adapt autouse fixture example for python3.</li>
<li>fixed issue453: assertion rewriting issue with __repr__ containing
&#8220;n{&#8221;, &#8220;n}&#8221; and &#8220;n~&#8221;.</li>
<li>fix issue560: correctly display code if an &#8220;else:&#8221; or &#8220;finally:&#8221; is
followed by statements on the same line.</li>
<li>Fix example in monkeypatch documentation, thanks t-8ch.</li>
<li>fix issue572: correct tmpdir doc example for python3.</li>
<li>Do not mark as universal wheel because Python 2.6 is different from
other builds due to the extra argparse dependency.  Fixes issue566.
Thanks sontek.</li>
<li>Implement issue549: user-provided assertion messages now no longer
replace the py.test instrospection message but are shown in addition
to them.</li>
</ul>
</div>
<div class="section" id="id3">
<h2>2.6.1<a class="headerlink" href="#id3" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>No longer show line numbers in the &#8211;verbose output, the output is now
purely the nodeid.  The line number is still shown in failure reports.
Thanks Floris Bruynooghe.</li>
<li>fix issue437 where assertion rewriting could cause pytest-xdist slaves
to collect different tests. Thanks Bruno Oliveira.</li>
<li>fix issue555: add &#8220;errors&#8221; attribute to capture-streams to satisfy
some distutils and possibly other code accessing sys.stdout.errors.</li>
<li>fix issue547 capsys/capfd also work when output capturing (&#8220;-s&#8221;) is disabled.</li>
<li>address issue170: allow pytest.mark.xfail(...) to specify expected exceptions via
an optional &#8220;raises=EXC&#8221; argument where EXC can be a single exception
or a tuple of exception classes.  Thanks David Mohr for the complete
PR.</li>
<li>fix integration of pytest with unittest.mock.patch decorator when
it uses the &#8220;new&#8221; argument.  Thanks Nicolas Delaby for test and PR.</li>
<li>fix issue with detecting conftest files if the arguments contain
&#8221;::&#8221; node id specifications (copy pasted from &#8220;-v&#8221; output)</li>
<li>fix issue544 by only removing &#8220;&#64;NUM&#8221; at the end of &#8221;::&#8221; separated parts
and if the part has an &#8221;.py&#8221; extension</li>
<li>don&#8217;t use py.std import helper, rather import things directly.
Thanks Bruno Oliveira.</li>
</ul>
</div>
<div class="section" id="id4">
<h2>2.6<a class="headerlink" href="#id4" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Cache exceptions from fixtures according to their scope (issue 467).</li>
<li>fix issue537: Avoid importing old assertion reinterpretation code by default.</li>
<li>fix issue364: shorten and enhance tracebacks representation by default.
The new &#8220;&#8211;tb=auto&#8221; option (default) will only display long tracebacks
for the first and last entry.  You can get the old behaviour of printing
all entries as long entries with &#8220;&#8211;tb=long&#8221;.  Also short entries by
default are now printed very similarly to &#8220;&#8211;tb=native&#8221; ones.</li>
<li>fix issue514: teach assertion reinterpretation about private class attributes</li>
<li>change -v output to include full node IDs of tests.  Users can copy
a node ID from a test run, including line number, and use it as a
positional argument in order to run only a single test.</li>
<li>fix issue 475: fail early and comprehensible if calling
pytest.raises with wrong exception type.</li>
<li>fix issue516: tell in getting-started about current dependencies.</li>
<li>cleanup setup.py a bit and specify supported versions. Thanks Jurko
Gospodnetic for the PR.</li>
<li>change XPASS colour to yellow rather then red when tests are run
with -v.</li>
<li>fix issue473: work around mock putting an unbound method into a class
dict when double-patching.</li>
<li>fix issue498: if a fixture finalizer fails, make sure that
the fixture is still invalidated.</li>
<li>fix issue453: the result of the pytest_assertrepr_compare hook now gets
it&#8217;s newlines escaped so that format_exception does not blow up.</li>
<li>internal new warning system: pytest will now produce warnings when
it detects oddities in your test collection or execution.
Warnings are ultimately sent to a new pytest_logwarning hook which is
currently only implemented by the terminal plugin which displays
warnings in the summary line and shows more details when -rw (report on
warnings) is specified.</li>
<li>change skips into warnings for test classes with an __init__ and
callables in test modules which look like a test but are not functions.</li>
<li>fix issue436: improved finding of initial conftest files from command
line arguments by using the result of parse_known_args rather than
the previous flaky heuristics.  Thanks Marc Abramowitz for tests
and initial fixing approaches in this area.</li>
<li>fix issue #479: properly handle nose/unittest(2) SkipTest exceptions
during collection/loading of test modules.  Thanks to Marc Schlaich
for the complete PR.</li>
<li>fix issue490: include pytest_load_initial_conftests in documentation
and improve docstring.</li>
<li>fix issue472: clarify that <tt class="docutils literal"><span class="pre">pytest.config.getvalue()</span></tt> cannot work
if it&#8217;s triggered ahead of command line parsing.</li>
<li>merge PR123: improved integration with mock.patch decorator on tests.</li>
<li>fix issue412: messing with stdout/stderr FD-level streams is now
captured without crashes.</li>
<li>fix issue483: trial/py33 works now properly.  Thanks Daniel Grana for PR.</li>
<li>improve example for pytest integration with &#8220;python setup.py test&#8221;
which now has a generic &#8220;-a&#8221; or &#8220;&#8211;pytest-args&#8221; option where you
can pass additional options as a quoted string.  Thanks Trevor Bekolay.</li>
<li>simplified internal capturing mechanism and made it more robust
against tests or setups changing FD1/FD2, also better integrated
now with pytest.pdb() in single tests.</li>
<li>improvements to pytest&#8217;s own test-suite leakage detection, courtesy of PRs
from Marc Abramowitz</li>
<li>fix issue492: avoid leak in test_writeorg.  Thanks Marc Abramowitz.</li>
<li>fix issue493: don&#8217;t run tests in doc directory with <tt class="docutils literal"><span class="pre">python</span> <span class="pre">setup.py</span> <span class="pre">test</span></tt>
(use tox -e doctesting for that)</li>
<li>fix issue486: better reporting and handling of early conftest loading failures</li>
<li>some cleanup and simplification of internal conftest handling.</li>
<li>work a bit harder to break reference cycles when catching exceptions.
Thanks Jurko Gospodnetic.</li>
<li>fix issue443: fix skip examples to use proper comparison.  Thanks Alex
Groenholm.</li>
<li>support nose-style <tt class="docutils literal"><span class="pre">__test__</span></tt> attribute on modules, classes and
functions, including unittest-style Classes.  If set to False, the
test will not be collected.</li>
<li>fix issue512: show &#8220;&lt;notset&gt;&#8221; for arguments which might not be set
in monkeypatch plugin.  Improves output in documentation.</li>
</ul>
</div>
<div class="section" id="id5">
<h2>2.5.2<a class="headerlink" href="#id5" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue409 &#8211; better interoperate with cx_freeze by not
trying to import from collections.abc which causes problems
for py27/cx_freeze.  Thanks Wolfgang L. for reporting and tracking it down.</li>
<li>fixed docs and code to use &#8220;pytest&#8221; instead of &#8220;py.test&#8221; almost everywhere.
Thanks Jurko Gospodnetic for the complete PR.</li>
<li>fix issue425: mention at end of &#8220;py.test -h&#8221; that &#8211;markers
and &#8211;fixtures work according to specified test path (or current dir)</li>
<li>fix issue413: exceptions with unicode attributes are now printed
correctly also on python2 and with pytest-xdist runs. (the fix
requires py-1.4.20)</li>
<li>copy, cleanup and integrate py.io capture
from pylib 1.4.20.dev2 (rev 13d9af95547e)</li>
<li>address issue416: clarify docs as to conftest.py loading semantics</li>
<li>fix issue429: comparing byte strings with non-ascii chars in assert
expressions now work better.  Thanks Floris Bruynooghe.</li>
<li>make capfd/capsys.capture private, its unused and shouldnt be exposed</li>
</ul>
</div>
<div class="section" id="id6">
<h2>2.5.1<a class="headerlink" href="#id6" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>merge new documentation styling PR from Tobias Bieniek.</li>
<li>fix issue403: allow parametrize of multiple same-name functions within
a collection node.  Thanks Andreas Kloeckner and Alex Gaynor for reporting
and analysis.</li>
<li>Allow parameterized fixtures to specify the ID of the parameters by
adding an ids argument to pytest.fixture() and pytest.yield_fixture().
Thanks Floris Bruynooghe.</li>
<li>fix issue404 by always using the binary xml escape in the junitxml
plugin.  Thanks Ronny Pfannschmidt.</li>
<li>fix issue407: fix addoption docstring to point to argparse instead of
optparse. Thanks Daniel D. Wright.</li>
</ul>
</div>
<div class="section" id="id7">
<h2>2.5.0<a class="headerlink" href="#id7" title="Permalink to this headline"></a></h2>
<ul>
<li><p class="first">dropped python2.5 from automated release testing of pytest itself
which means it&#8217;s probably going to break soon (but still works
with this release we believe).</p>
</li>
<li><p class="first">simplified and fixed implementation for calling finalizers when
parametrized fixtures or function arguments are involved.  finalization
is now performed lazily at setup time instead of in the &#8220;teardown phase&#8221;.
While this might sound odd at first, it helps to ensure that we are
correctly handling setup/teardown even in complex code.  User-level code
should not be affected unless it&#8217;s implementing the pytest_runtest_teardown
hook and expecting certain fixture instances are torn down within (very
unlikely and would have been unreliable anyway).</p>
</li>
<li><p class="first">PR90: add &#8211;color=yes|no|auto option to force terminal coloring
mode (&#8220;auto&#8221; is default).  Thanks Marc Abramowitz.</p>
</li>
<li><p class="first">fix issue319 - correctly show unicode in assertion errors.  Many
thanks to Floris Bruynooghe for the complete PR.  Also means
we depend on py&gt;=1.4.19 now.</p>
</li>
<li><p class="first">fix issue396 - correctly sort and finalize class-scoped parametrized
tests independently from number of methods on the class.</p>
</li>
<li><p class="first">refix issue323 in a better way &#8211; parametrization should now never
cause Runtime Recursion errors because the underlying algorithm
for re-ordering tests per-scope/per-fixture is not recursive
anymore (it was tail-call recursive before which could lead
to problems for more than &gt;966 non-function scoped parameters).</p>
</li>
<li><p class="first">fix issue290 - there is preliminary support now for parametrizing
with repeated same values (sometimes useful to to test if calling
a second time works as with the first time).</p>
</li>
<li><p class="first">close issue240 - document precisely how pytest module importing
works, discuss the two common test directory layouts, and how it
interacts with PEP420-namespace packages.</p>
</li>
<li><p class="first">fix issue246 fix finalizer order to be LIFO on independent fixtures
depending on a parametrized higher-than-function scoped fixture.
(was quite some effort so please bear with the complexity of this sentence :)
Thanks Ralph Schmitt for the precise failure example.</p>
</li>
<li><p class="first">fix issue244 by implementing special index for parameters to only use
indices for paramentrized test ids</p>
</li>
<li><p class="first">fix issue287 by running all finalizers but saving the exception
from the first failing finalizer and re-raising it so teardown will
still have failed.  We reraise the first failing exception because
it might be the cause for other finalizers to fail.</p>
</li>
<li><p class="first">fix ordering when mock.patch or other standard decorator-wrappings
are used with test methods.  This fixues issue346 and should
help with random &#8220;xdist&#8221; collection failures.  Thanks to
Ronny Pfannschmidt and Donald Stufft for helping to isolate it.</p>
</li>
<li><p class="first">fix issue357 - special case &#8220;-k&#8221; expressions to allow for
filtering with simple strings that are not valid python expressions.
Examples: &#8220;-k 1.3&#8221; matches all tests parametrized with 1.3.
&#8220;-k None&#8221; filters all tests that have &#8220;None&#8221; in their name
and conversely &#8220;-k &#8216;not None&#8217;&#8221;.
Previously these examples would raise syntax errors.</p>
</li>
<li><p class="first">fix issue384 by removing the trial support code
since the unittest compat enhancements allow
trial to handle it on its own</p>
</li>
<li><p class="first">don&#8217;t hide an ImportError when importing a plugin produces one.
fixes issue375.</p>
</li>
<li><p class="first">fix issue275 - allow usefixtures and autouse fixtures
for running doctest text files.</p>
</li>
<li><p class="first">fix issue380 by making &#8211;resultlog only rely on longrepr instead
of the &#8220;reprcrash&#8221; attribute which only exists sometimes.</p>
</li>
<li><p class="first">address issue122: allow &#64;pytest.fixture(params=iterator) by exploding
into a list early on.</p>
</li>
<li><p class="first">fix pexpect-3.0 compatibility for pytest&#8217;s own tests.
(fixes issue386)</p>
</li>
<li><p class="first">allow nested parametrize-value markers, thanks James Lan for the PR.</p>
</li>
<li><p class="first">fix unicode handling with new monkeypatch.setattr(import_path, value)
API.  Thanks Rob Dennis.  Fixes issue371.</p>
</li>
<li><p class="first">fix unicode handling with junitxml, fixes issue368.</p>
</li>
<li><p class="first">In assertion rewriting mode on Python 2, fix the detection of coding
cookies. See issue #330.</p>
</li>
<li><p class="first">make &#8220;&#8211;runxfail&#8221; turn imperative pytest.xfail calls into no ops
(it already did neutralize pytest.mark.xfail markers)</p>
</li>
<li><p class="first">refine pytest / pkg_resources interactions: The AssertionRewritingHook
PEP302 compliant loader now registers itself with setuptools/pkg_resources
properly so that the pkg_resources.resource_stream method works properly.
Fixes issue366.  Thanks for the investigations and full PR to Jason R. Coombs.</p>
</li>
<li><p class="first">pytestconfig fixture is now session-scoped as it is the same object during the
whole test run.  Fixes issue370.</p>
</li>
<li><p class="first">avoid one surprising case of marker malfunction/confusion:</p>
<div class="highlight-python"><div class="highlight"><pre>@pytest.mark.some(lambda arg: ...)
def test_function():
</pre></div>
</div>
<p>would not work correctly because pytest assumes &#64;pytest.mark.some
gets a function to be decorated already.  We now at least detect if this
arg is an lambda and thus the example will work.  Thanks Alex Gaynor
for bringing it up.</p>
</li>
<li><p class="first">xfail a test on pypy that checks wrong encoding/ascii (pypy does
not error out). fixes issue385.</p>
</li>
<li><p class="first">internally make varnames() deal with classes&#8217;s __init__,
although it&#8217;s not needed by pytest itself atm.  Also
fix caching.  Fixes issue376.</p>
</li>
<li><p class="first">fix issue221 - handle importing of namespace-package with no
__init__.py properly.</p>
</li>
<li><p class="first">refactor internal FixtureRequest handling to avoid monkeypatching.
One of the positive user-facing effects is that the &#8220;request&#8221; object
can now be used in closures.</p>
</li>
<li><p class="first">fixed version comparison in pytest.importskip(modname, minverstring)</p>
</li>
<li><p class="first">fix issue377 by clarifying in the nose-compat docs that pytest
does not duplicate the unittest-API into the &#8220;plain&#8221; namespace.</p>
</li>
<li><p class="first">fix verbose reporting for &#64;mock&#8217;d test functions</p>
</li>
</ul>
</div>
<div class="section" id="v2-4-2">
<h2>v2.4.2<a class="headerlink" href="#v2-4-2" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>on Windows require colorama and a newer py lib so that py.io.TerminalWriter()
now uses colorama instead of its own ctypes hacks. (fixes issue365)
thanks Paul Moore for bringing it up.</li>
<li>fix &#8220;-k&#8221; matching of tests where &#8220;repr&#8221; and &#8220;attr&#8221; and other names would
cause wrong matches because of an internal implementation quirk
(don&#8217;t ask) which is now properly implemented. fixes issue345.</li>
<li>avoid tmpdir fixture to create too long filenames especially
when parametrization is used (issue354)</li>
<li>fix pytest-pep8 and pytest-flakes / pytest interactions
(collection names in mark plugin was assuming an item always
has a function which is not true for those plugins etc.)
Thanks Andi Zeidler.</li>
<li>introduce node.get_marker/node.add_marker API for plugins
like pytest-pep8 and pytest-flakes to avoid the messy
details of the node.keywords  pseudo-dicts.  Adapated
docs.</li>
<li>remove attempt to &#8220;dup&#8221; stdout at startup as it&#8217;s icky.
the normal capturing should catch enough possibilities
of tests messing up standard FDs.</li>
<li>add pluginmanager.do_configure(config) as a link to
config.do_configure() for plugin-compatibility</li>
</ul>
</div>
<div class="section" id="v2-4-1">
<h2>v2.4.1<a class="headerlink" href="#v2-4-1" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>When using parser.addoption() unicode arguments to the
&#8220;type&#8221; keyword should also be converted to the respective types.
thanks Floris Bruynooghe, &#64;dnozay. (fixes issue360 and issue362)</li>
<li>fix dotted filename completion when using argcomplete
thanks Anthon van der Neuth. (fixes issue361)</li>
<li>fix regression when a 1-tuple (&#8220;arg&#8221;,) is used for specifying
parametrization (the values of the parametrization were passed
nested in a tuple).  Thanks Donald Stufft.</li>
<li>merge doc typo fixes, thanks Andy Dirnberger</li>
</ul>
</div>
<div class="section" id="v2-4">
<h2>v2.4<a class="headerlink" href="#v2-4" title="Permalink to this headline"></a></h2>
<p>known incompatibilities:</p>
<ul class="simple">
<li>if calling &#8211;genscript from python2.7 or above, you only get a
standalone script which works on python2.7 or above.  Use Python2.6
to also get a python2.5 compatible version.</li>
<li>all xunit-style teardown methods (nose-style, pytest-style,
unittest-style) will not be called if the corresponding setup method failed,
see issue322 below.</li>
<li>the pytest_plugin_unregister hook wasn&#8217;t ever properly called
and there is no known implementation of the hook - so it got removed.</li>
<li>pytest.fixture-decorated functions cannot be generators (i.e. use
yield) anymore.  This change might be reversed in 2.4.1 if it causes
unforeseen real-life issues.  However, you can always write and return
an inner function/generator and change the fixture consumer to iterate
over the returned generator.  This change was done in lieu of the new
<tt class="docutils literal"><span class="pre">pytest.yield_fixture</span></tt> decorator, see below.</li>
</ul>
<p>new features:</p>
<ul>
<li><p class="first">experimentally introduce a new <tt class="docutils literal"><span class="pre">pytest.yield_fixture</span></tt> decorator
which accepts exactly the same parameters as pytest.fixture but
mandates a <tt class="docutils literal"><span class="pre">yield</span></tt> statement instead of a <tt class="docutils literal"><span class="pre">return</span> <span class="pre">statement</span></tt> from
fixture functions.  This allows direct integration with &#8220;with-style&#8221;
context managers in fixture functions and generally avoids registering
of finalization callbacks in favour of treating the &#8220;after-yield&#8221; as
teardown code.  Thanks Andreas Pelme, Vladimir Keleshev, Floris
Bruynooghe, Ronny Pfannschmidt and many others for discussions.</p>
</li>
<li><p class="first">allow boolean expression directly with skipif/xfail
if a &#8220;reason&#8221; is also specified.  Rework skipping documentation
to recommend &#8220;condition as booleans&#8221; because it prevents surprises
when importing markers between modules.  Specifying conditions
as strings will remain fully supported.</p>
</li>
<li><p class="first">reporting: color the last line red or green depending if
failures/errors occured or everything passed.  thanks Christian
Theunert.</p>
</li>
<li><p class="first">make &#8220;import pdb ; pdb.set_trace()&#8221; work natively wrt capturing (no
&#8220;-s&#8221; needed anymore), making <tt class="docutils literal"><span class="pre">pytest.set_trace()</span></tt> a mere shortcut.</p>
</li>
<li><p class="first">fix issue181: &#8211;pdb now also works on collect errors (and
on internal errors) .  This was implemented by a slight internal
refactoring and the introduction of a new hook
<tt class="docutils literal"><span class="pre">pytest_exception_interact</span></tt> hook (see next item).</p>
</li>
<li><p class="first">fix issue341: introduce new experimental hook for IDEs/terminals to
intercept debugging: <tt class="docutils literal"><span class="pre">pytest_exception_interact(node,</span> <span class="pre">call,</span> <span class="pre">report)</span></tt>.</p>
</li>
<li><p class="first">new monkeypatch.setattr() variant to provide a shorter
invocation for patching out classes/functions from modules:</p>
<blockquote>
<div><p>monkeypatch.setattr(&#8220;requests.get&#8221;, myfunc)</p>
</div></blockquote>
<p>will replace the &#8220;get&#8221; function of the &#8220;requests&#8221; module with <tt class="docutils literal"><span class="pre">myfunc</span></tt>.</p>
</li>
<li><p class="first">fix issue322: tearDownClass is not run if setUpClass failed. Thanks
Mathieu Agopian for the initial fix.  Also make all of pytest/nose
finalizer mimick the same generic behaviour: if a setupX exists and
fails, don&#8217;t run teardownX.  This internally introduces a new method
&#8220;node.addfinalizer()&#8221; helper which can only be called during the setup
phase of a node.</p>
</li>
<li><p class="first">simplify pytest.mark.parametrize() signature: allow to pass a
CSV-separated string to specify argnames.  For example:
<tt class="docutils literal"><span class="pre">pytest.mark.parametrize(&quot;input,expected&quot;,</span>&nbsp; <span class="pre">[(1,2),</span> <span class="pre">(2,3)])</span></tt>
works as well as the previous:
<tt class="docutils literal"><span class="pre">pytest.mark.parametrize((&quot;input&quot;,</span> <span class="pre">&quot;expected&quot;),</span> <span class="pre">...)</span></tt>.</p>
</li>
<li><p class="first">add support for setUpModule/tearDownModule detection, thanks Brian Okken.</p>
</li>
<li><p class="first">integrate tab-completion on options through use of &#8220;argcomplete&#8221;.
Thanks Anthon van der Neut for the PR.</p>
</li>
<li><p class="first">change option names to be hyphen-separated long options but keep the
old spelling backward compatible.  py.test -h will only show the
hyphenated version, for example &#8220;&#8211;collect-only&#8221; but &#8220;&#8211;collectonly&#8221;
will remain valid as well (for backward-compat reasons).  Many thanks to
Anthon van der Neut for the implementation and to Hynek Schlawack for
pushing us.</p>
</li>
<li><p class="first">fix issue 308 - allow to mark/xfail/skip individual parameter sets
when parametrizing.  Thanks Brianna Laugher.</p>
</li>
<li><p class="first">call new experimental pytest_load_initial_conftests hook to allow
3rd party plugins to do something before a conftest is loaded.</p>
</li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li>fix issue358 - capturing options are now parsed more properly
by using a new parser.parse_known_args method.</li>
<li>pytest now uses argparse instead of optparse (thanks Anthon) which
means that &#8220;argparse&#8221; is added as a dependency if installing into python2.6
environments or below.</li>
<li>fix issue333: fix a case of bad unittest/pytest hook interaction.</li>
<li>PR27: correctly handle nose.SkipTest during collection.  Thanks
Antonio Cuni, Ronny Pfannschmidt.</li>
<li>fix issue355: junitxml puts name=&#8221;pytest&#8221; attribute to testsuite tag.</li>
<li>fix issue336: autouse fixture in plugins should work again.</li>
<li>fix issue279: improve object comparisons on assertion failure
for standard datatypes and recognise collections.abc.  Thanks to
Brianna Laugher and Mathieu Agopian.</li>
<li>fix issue317: assertion rewriter support for the is_package method</li>
<li>fix issue335: document py.code.ExceptionInfo() object returned
from pytest.raises(), thanks Mathieu Agopian.</li>
<li>remove implicit distribute_setup support from setup.py.</li>
<li>fix issue305: ignore any problems when writing pyc files.</li>
<li>SO-17664702: call fixture finalizers even if the fixture function
partially failed (finalizers would not always be called before)</li>
<li>fix issue320 - fix class scope for fixtures when mixed with
module-level functions.  Thanks Anatloy Bubenkoff.</li>
<li>you can specify &#8220;-q&#8221; or &#8220;-qq&#8221; to get different levels of &#8220;quieter&#8221;
reporting (thanks Katarzyna Jachim)</li>
<li>fix issue300 - Fix order of conftest loading when starting py.test
in a subdirectory.</li>
<li>fix issue323 - sorting of many module-scoped arg parametrizations</li>
<li>make sessionfinish hooks execute with the same cwd-context as at
session start (helps fix plugin behaviour which write output files
with relative path such as pytest-cov)</li>
<li>fix issue316 - properly reference collection hooks in docs</li>
<li>fix issue 306 - cleanup of -k/-m options to only match markers/test
names/keywords respectively.  Thanks Wouter van Ackooy.</li>
<li>improved doctest counting for doctests in python modules &#8211;
files without any doctest items will not show up anymore
and doctest examples are counted as separate test items.
thanks Danilo Bellini.</li>
<li>fix issue245 by depending on the released py-1.4.14
which fixes py.io.dupfile to work with files with no
mode. Thanks Jason R. Coombs.</li>
<li>fix junitxml generation when test output contains control characters,
addressing issue267, thanks Jaap Broekhuizen</li>
<li>fix issue338: honor &#8211;tb style for setup/teardown errors as well.  Thanks Maho.</li>
<li>fix issue307 - use yaml.safe_load in example, thanks Mark Eichin.</li>
<li>better parametrize error messages, thanks Brianna Laugher</li>
<li>pytest_terminal_summary(terminalreporter) hooks can now use
&#8221;.section(title)&#8221; and &#8221;.line(msg)&#8221; methods to print extra
information at the end of a test run.</li>
</ul>
</div>
<div class="section" id="v2-3-5">
<h2>v2.3.5<a class="headerlink" href="#v2-3-5" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue169: respect &#8211;tb=style with setup/teardown errors as well.</li>
<li>never consider a fixture function for test function collection</li>
<li>allow re-running of test items / helps to fix pytest-reruntests plugin
and also help to keep less fixture/resource references alive</li>
<li>put captured stdout/stderr into junitxml output even for passing tests
(thanks Adam Goucher)</li>
<li>Issue 265 - integrate nose setup/teardown with setupstate
so it doesnt try to teardown if it did not setup</li>
<li>issue 271 - dont write junitxml on slave nodes</li>
<li>Issue 274 - dont try to show full doctest example
when doctest does not know the example location</li>
<li>issue 280 - disable assertion rewriting on buggy CPython 2.6.0</li>
<li>inject &#8220;getfixture()&#8221; helper to retrieve fixtures from doctests,
thanks Andreas Zeidler</li>
<li>issue 259 - when assertion rewriting, be consistent with the default
source encoding of ASCII on Python 2</li>
<li>issue 251 - report a skip instead of ignoring classes with init</li>
<li>issue250 unicode/str mixes in parametrization names and values now works</li>
<li>issue257, assertion-triggered compilation of source ending in a
comment line doesn&#8217;t blow up in python2.5 (fixed through py&gt;=1.4.13.dev6)</li>
<li>fix &#8211;genscript option to generate standalone scripts that also
work with python3.3 (importer ordering)</li>
<li>issue171 - in assertion rewriting, show the repr of some
global variables</li>
<li>fix option help for &#8220;-k&#8221;</li>
<li>move long description of distribution into README.rst</li>
<li>improve docstring for metafunc.parametrize()</li>
<li>fix bug where using capsys with pytest.set_trace() in a test
function would break when looking at capsys.readouterr()</li>
<li>allow to specify prefixes starting with &#8220;_&#8221; when
customizing python_functions test discovery. (thanks Graham Horler)</li>
<li>improve PYTEST_DEBUG tracing output by puting
extra data on a new lines with additional indent</li>
<li>ensure OutcomeExceptions like skip/fail have initialized exception attributes</li>
<li>issue 260 - don&#8217;t use nose special setup on plain unittest cases</li>
<li>fix issue134 - print the collect errors that prevent running specified test items</li>
<li>fix issue266 - accept unicode in MarkEvaluator expressions</li>
</ul>
</div>
<div class="section" id="v2-3-4">
<h2>v2.3.4<a class="headerlink" href="#v2-3-4" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>yielded test functions will now have autouse-fixtures active but
cannot accept fixtures as funcargs - it&#8217;s anyway recommended to
rather use the post-2.0 parametrize features instead of yield, see:
<a class="reference external" href="http://pytest.org/latest/example/parametrize.html">http://pytest.org/latest/example/parametrize.html</a></li>
<li>fix autouse-issue where autouse-fixtures would not be discovered
if defined in a a/conftest.py file and tests in a/tests/test_some.py</li>
<li>fix issue226 - LIFO ordering for fixture teardowns</li>
<li>fix issue224 - invocations with &gt;256 char arguments now work</li>
<li>fix issue91 - add/discuss package/directory level setups in example</li>
<li>allow to dynamically define markers via
item.keywords[...]=assignment integrating with &#8220;-m&#8221; option</li>
<li>make &#8220;-k&#8221; accept an expressions the same as with &#8220;-m&#8221; so that one
can write: -k &#8220;name1 or name2&#8221; etc.  This is a slight incompatibility
if you used special syntax like &#8220;TestClass.test_method&#8221; which you now
need to write as -k &#8220;TestClass and test_method&#8221; to match a certain
method in a certain test class.</li>
</ul>
</div>
<div class="section" id="v2-3-3">
<h2>v2.3.3<a class="headerlink" href="#v2-3-3" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue214 - parse modules that contain special objects like e. g.
flask&#8217;s request object which blows up on getattr access if no request
is active. thanks Thomas Waldmann.</li>
<li>fix issue213 - allow to parametrize with values like numpy arrays that
do not support an __eq__ operator</li>
<li>fix issue215 - split test_python.org into multiple files</li>
<li>fix issue148 - &#64;unittest.skip on classes is now recognized and avoids
calling setUpClass/tearDownClass, thanks Pavel Repin</li>
<li>fix issue209 - reintroduce python2.4 support by depending on newer
pylib which re-introduced statement-finding for pre-AST interpreters</li>
<li>nose support: only call setup if its a callable, thanks Andrew
Taumoefolau</li>
<li>fix issue219 - add py2.4-3.3 classifiers to TROVE list</li>
<li>in tracebacks <em>,*</em> arg values are now shown next to normal arguments
(thanks Manuel Jacob)</li>
<li>fix issue217 - support mock.patch with pytest&#8217;s fixtures - note that
you need either mock-1.0.1 or the python3.3 builtin unittest.mock.</li>
<li>fix issue127 - improve documentation for pytest_addoption() and
add a <tt class="docutils literal"><span class="pre">config.getoption(name)</span></tt> helper function for consistency.</li>
</ul>
</div>
<div class="section" id="v2-3-2">
<h2>v2.3.2<a class="headerlink" href="#v2-3-2" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue208 and fix issue29 use new py version to avoid long pauses
when printing tracebacks in long modules</li>
<li>fix issue205 - conftests in subdirs customizing
pytest_pycollect_makemodule and pytest_pycollect_makeitem
now work properly</li>
<li>fix teardown-ordering for parametrized setups</li>
<li>fix issue127 - better documentation for pytest_addoption
and related objects.</li>
<li>fix unittest behaviour: TestCase.runtest only called if there are
test methods defined</li>
<li>improve trial support: don&#8217;t collect its empty
unittest.TestCase.runTest() method</li>
<li>&#8220;python setup.py test&#8221; now works with pytest itself</li>
<li>fix/improve internal/packaging related bits:<ul>
<li>exception message check of test_nose.py now passes on python33 as well</li>
<li>issue206 - fix test_assertrewrite.py to work when a global
PYTHONDONTWRITEBYTECODE=1 is present</li>
<li>add tox.ini to pytest distribution so that ignore-dirs and others config
bits are properly distributed for maintainers who run pytest-own tests</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="v2-3-1">
<h2>v2.3.1<a class="headerlink" href="#v2-3-1" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue202 - fix regression: using &#8220;self&#8221; from fixture functions now
works as expected (it&#8217;s the same &#8220;self&#8221; instance that a test method
which uses the fixture sees)</li>
<li>skip pexpect using tests (test_pdb.py mostly) on freebsd* systems
due to pexpect not supporting it properly (hanging)</li>
<li>link to web pages from &#8211;markers output which provides help for
pytest.mark.* usage.</li>
</ul>
</div>
<div class="section" id="v2-3-0">
<h2>v2.3.0<a class="headerlink" href="#v2-3-0" title="Permalink to this headline"></a></h2>
<ul>
<li><p class="first">fix issue202 - better automatic names for parametrized test functions</p>
</li>
<li><p class="first">fix issue139 - introduce &#64;pytest.fixture which allows direct scoping
and parametrization of funcarg factories.</p>
</li>
<li><p class="first">fix issue198 - conftest fixtures were not found on windows32 in some
circumstances with nested directory structures due to path manipulation issues</p>
</li>
<li><p class="first">fix issue193 skip test functions with were parametrized with empty
parameter sets</p>
</li>
<li><p class="first">fix python3.3 compat, mostly reporting bits that previously depended
on dict ordering</p>
</li>
<li><p class="first">introduce re-ordering of tests by resource and parametrization setup
which takes precedence to the usual file-ordering</p>
</li>
<li><p class="first">fix issue185 monkeypatching time.time does not cause pytest to fail</p>
</li>
<li><p class="first">fix issue172 duplicate call of pytest.fixture decoratored setup_module
functions</p>
</li>
<li><p class="first">fix junitxml=path construction so that if tests change the
current working directory and the path is a relative path
it is constructed correctly from the original current working dir.</p>
</li>
<li><p class="first">fix &#8220;python setup.py test&#8221; example to cause a proper &#8220;errno&#8221; return</p>
</li>
<li><p class="first">fix issue165 - fix broken doc links and mention stackoverflow for FAQ</p>
</li>
<li><p class="first">catch unicode-issues when writing failure representations
to terminal to prevent the whole session from crashing</p>
</li>
<li><p class="first">fix xfail/skip confusion: a skip-mark or an imperative pytest.skip
will now take precedence before xfail-markers because we
can&#8217;t determine xfail/xpass status in case of a skip. see also:
<a class="reference external" href="http://stackoverflow.com/questions/11105828/in-py-test-when-i-explicitly-skip-a-test-that-is-marked-as-xfail-how-can-i-get">http://stackoverflow.com/questions/11105828/in-py-test-when-i-explicitly-skip-a-test-that-is-marked-as-xfail-how-can-i-get</a></p>
</li>
<li><p class="first">always report installed 3rd party plugins in the header of a test run</p>
</li>
<li><p class="first">fix issue160: a failing setup of an xfail-marked tests should
be reported as xfail (not xpass)</p>
</li>
<li><p class="first">fix issue128: show captured output when capsys/capfd are used</p>
</li>
<li><p class="first">fix issue179: propperly show the dependency chain of factories</p>
</li>
<li><p class="first">pluginmanager.register(...) now raises ValueError if the
plugin has been already registered or the name is taken</p>
</li>
<li><p class="first">fix issue159: improve <a class="reference external" href="http://pytest.org/latest/faq.html">http://pytest.org/latest/faq.html</a>
especially with respect to the &#8220;magic&#8221; history, also mention
pytest-django, trial and unittest integration.</p>
</li>
<li><p class="first">make request.keywords and node.keywords writable.  All descendant
collection nodes will see keyword values.  Keywords are dictionaries
containing markers and other info.</p>
</li>
<li><p class="first">fix issue 178: xml binary escapes are now wrapped in py.xml.raw</p>
</li>
<li><p class="first">fix issue 176: correctly catch the builtin AssertionError
even when we replaced AssertionError with a subclass on the
python level</p>
</li>
<li><p class="first">factory discovery no longer fails with magic global callables
that provide no sane __code__ object (mock.call for example)</p>
</li>
<li><p class="first">fix issue 182: testdir.inprocess_run now considers passed plugins</p>
</li>
<li><dl class="first docutils">
<dt>fix issue 188: ensure sys.exc_info is clear on python2</dt>
<dd><p class="first last">before calling into a test</p>
</dd>
</dl>
</li>
<li><p class="first">fix issue 191: add unittest TestCase runTest method support</p>
</li>
<li><p class="first">fix issue 156: monkeypatch correctly handles class level descriptors</p>
</li>
<li><p class="first">reporting refinements:</p>
<ul class="simple">
<li>pytest_report_header now receives a &#8220;startdir&#8221; so that
you can use startdir.bestrelpath(yourpath) to show
nice relative path</li>
<li>allow plugins to implement both pytest_report_header and
pytest_sessionstart (sessionstart is invoked first).</li>
<li>don&#8217;t show deselected reason line if there is none</li>
<li>py.test -vv will show all of assert comparisations instead of truncating</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="v2-2-4">
<h2>v2.2.4<a class="headerlink" href="#v2-2-4" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix error message for rewritten assertions involving the % operator</li>
<li>fix issue 126: correctly match all invalid xml characters for junitxml
binary escape</li>
<li>fix issue with unittest: now &#64;unittest.expectedFailure markers should
be processed correctly (you can also use &#64;pytest.mark markers)</li>
<li>document integration with the extended distribute/setuptools test commands</li>
<li>fix issue 140: propperly get the real functions
of bound classmethods for setup/teardown_class</li>
<li>fix issue #141: switch from the deceased paste.pocoo.org to bpaste.net</li>
<li>fix issue #143: call unconfigure/sessionfinish always when
configure/sessionstart where called</li>
<li>fix issue #144: better mangle test ids to junitxml classnames</li>
<li>upgrade distribute_setup.py to 0.6.27</li>
</ul>
</div>
<div class="section" id="v2-2-3">
<h2>v2.2.3<a class="headerlink" href="#v2-2-3" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix uploaded package to only include neccesary files</li>
</ul>
</div>
<div class="section" id="v2-2-2">
<h2>v2.2.2<a class="headerlink" href="#v2-2-2" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue101: wrong args to unittest.TestCase test function now
produce better output</li>
<li>fix issue102: report more useful errors and hints for when a
test directory was renamed and some pyc/__pycache__ remain</li>
<li>fix issue106: allow parametrize to be applied multiple times
e.g. from module, class and at function level.</li>
<li>fix issue107: actually perform session scope finalization</li>
<li>don&#8217;t check in parametrize if indirect parameters are funcarg names</li>
<li>add chdir method to monkeypatch funcarg</li>
<li>fix crash resulting from calling monkeypatch undo a second time</li>
<li>fix issue115: make &#8211;collectonly robust against early failure
(missing files/directories)</li>
<li>&#8220;-qq &#8211;collectonly&#8221; now shows only files and the number of tests in them</li>
<li>&#8220;-q &#8211;collectonly&#8221; now shows test ids</li>
<li>allow adding of attributes to test reports such that it also works
with distributed testing (no upgrade of pytest-xdist needed)</li>
</ul>
</div>
<div class="section" id="v2-2-1">
<h2>v2.2.1<a class="headerlink" href="#v2-2-1" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue99 (in pytest and py) internallerrors with resultlog now
produce better output - fixed by normalizing pytest_internalerror
input arguments.</li>
<li>fix issue97 / traceback issues (in pytest and py) improve traceback output
in conjunction with jinja2 and cython which hack tracebacks</li>
<li>fix issue93 (in pytest and pytest-xdist) avoid &#8220;delayed teardowns&#8221;:
the final test in a test node will now run its teardown directly
instead of waiting for the end of the session. Thanks Dave Hunt for
the good reporting and feedback.  The pytest_runtest_protocol as well
as the pytest_runtest_teardown hooks now have &#8220;nextitem&#8221; available
which will be None indicating the end of the test run.</li>
<li>fix collection crash due to unknown-source collected items, thanks
to Ralf Schmitt (fixed by depending on a more recent pylib)</li>
</ul>
</div>
<div class="section" id="v2-2-0">
<h2>v2.2.0<a class="headerlink" href="#v2-2-0" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue90: introduce eager tearing down of test items so that
teardown function are called earlier.</li>
<li>add an all-powerful metafunc.parametrize function which allows to
parametrize test function arguments in multiple steps and therefore
from indepdenent plugins and palces.</li>
<li>add a &#64;pytest.mark.parametrize helper which allows to easily
call a test function with different argument values</li>
<li>Add examples to the &#8220;parametrize&#8221; example page, including a quick port
of Test scenarios and the new parametrize function and decorator.</li>
<li>introduce registration for &#8220;pytest.mark.*&#8221; helpers via ini-files
or through plugin hooks.  Also introduce a &#8220;&#8211;strict&#8221; option which
will treat unregistered markers as errors
allowing to avoid typos and maintain a well described set of markers
for your test suite.  See exaples at <a class="reference external" href="http://pytest.org/latest/mark.html">http://pytest.org/latest/mark.html</a>
and its links.</li>
<li>issue50: introduce &#8220;-m marker&#8221; option to select tests based on markers
(this is a stricter and more predictable version of &#8216;-k&#8217; in that &#8220;-m&#8221;
only matches complete markers and has more obvious rules for and/or
semantics.</li>
<li>new feature to help optimizing the speed of your tests:
&#8211;durations=N option for displaying N slowest test calls
and setup/teardown methods.</li>
<li>fix issue87: &#8211;pastebin now works with python3</li>
<li>fix issue89: &#8211;pdb with unexpected exceptions in doctest work more sensibly</li>
<li>fix and cleanup pytest&#8217;s own test suite to not leak FDs</li>
<li>fix issue83: link to generated funcarg list</li>
<li>fix issue74: pyarg module names are now checked against imp.find_module false positives</li>
<li>fix compatibility with twisted/trial-11.1.0 use cases</li>
<li>simplify Node.listchain</li>
<li>simplify junitxml output code by relying on py.xml</li>
<li>add support for skip properties on unittest classes and functions</li>
</ul>
</div>
<div class="section" id="v2-1-3">
<h2>v2.1.3<a class="headerlink" href="#v2-1-3" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue79: assertion rewriting failed on some comparisons in boolops</li>
<li>correctly handle zero length arguments (a la pytest &#8216;&#8217;)</li>
<li>fix issue67 / junitxml now contains correct test durations, thanks ronny</li>
<li>fix issue75 / skipping test failure on jython</li>
<li>fix issue77 / Allow assertrepr_compare hook to apply to a subset of tests</li>
</ul>
</div>
<div class="section" id="v2-1-2">
<h2>v2.1.2<a class="headerlink" href="#v2-1-2" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix assertion rewriting on files with windows newlines on some Python versions</li>
<li>refine test discovery by package/module name (&#8211;pyargs), thanks Florian Mayer</li>
<li>fix issue69 / assertion rewriting fixed on some boolean operations</li>
<li>fix issue68 / packages now work with assertion rewriting</li>
<li>fix issue66: use different assertion rewriting caches when the -O option is passed</li>
<li>don&#8217;t try assertion rewriting on Jython, use reinterp</li>
</ul>
</div>
<div class="section" id="v2-1-1">
<h2>v2.1.1<a class="headerlink" href="#v2-1-1" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue64 / pytest.set_trace now works within pytest_generate_tests hooks</li>
<li>fix issue60 / fix error conditions involving the creation of __pycache__</li>
<li>fix issue63 / assertion rewriting on inserts involving strings containing &#8216;%&#8217;</li>
<li>fix assertion rewriting on calls with a ** arg</li>
<li>don&#8217;t cache rewritten modules if bytecode generation is disabled</li>
<li>fix assertion rewriting in read-only directories</li>
<li>fix issue59: provide system-out/err tags for junitxml output</li>
<li>fix issue61: assertion rewriting on boolean operations with 3 or more operands</li>
<li>you can now build a man page with &#8220;cd doc ; make man&#8221;</li>
</ul>
</div>
<div class="section" id="v2-1-0">
<h2>v2.1.0<a class="headerlink" href="#v2-1-0" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue53 call nosestyle setup functions with correct ordering</li>
<li>fix issue58 and issue59: new assertion code fixes</li>
<li>merge Benjamin&#8217;s assertionrewrite branch: now assertions
for test modules on python 2.6 and above are done by rewriting
the AST and saving the pyc file before the test module is imported.
see doc/assert.txt for more info.</li>
<li>fix issue43: improve doctests with better traceback reporting on
unexpected exceptions</li>
<li>fix issue47: timing output in junitxml for test cases is now correct</li>
<li>fix issue48: typo in MarkInfo repr leading to exception</li>
<li>fix issue49: avoid confusing error when initizaliation partially fails</li>
<li>fix issue44: env/username expansion for junitxml file path</li>
<li>show releaselevel information in test runs for pypy</li>
<li>reworked doc pages for better navigation and PDF generation</li>
<li>report KeyboardInterrupt even if interrupted during session startup</li>
<li>fix issue 35 - provide PDF doc version and download link from index page</li>
</ul>
</div>
<div class="section" id="v2-0-3">
<h2>v2.0.3<a class="headerlink" href="#v2-0-3" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue38: nicer tracebacks on calls to hooks, particularly early
configure/sessionstart ones</li>
<li>fix missing skip reason/meta information in junitxml files, reported
via <a class="reference external" href="http://lists.idyll.org/pipermail/testing-in-python/2011-March/003928.html">http://lists.idyll.org/pipermail/testing-in-python/2011-March/003928.html</a></li>
<li>fix issue34: avoid collection failure with &#8220;test&#8221; prefixed classes
deriving from object.</li>
<li>don&#8217;t require zlib (and other libs) for genscript plugin without
&#8211;genscript actually being used.</li>
<li>speed up skips (by not doing a full traceback represenation
internally)</li>
<li>fix issue37: avoid invalid characters in junitxml&#8217;s output</li>
</ul>
</div>
<div class="section" id="v2-0-2">
<h2>v2.0.2<a class="headerlink" href="#v2-0-2" title="Permalink to this headline"></a></h2>
<ul>
<li><p class="first">tackle issue32 - speed up test runs of very quick test functions
by reducing the relative overhead</p>
</li>
<li><p class="first">fix issue30 - extended xfail/skipif handling and improved reporting.
If you have a syntax error in your skip/xfail
expressions you now get nice error reports.</p>
<p>Also you can now access module globals from xfail/skipif
expressions so that this for example works now:</p>
<div class="highlight-python"><div class="highlight"><pre>import pytest
import mymodule
@pytest.mark.skipif(&quot;mymodule.__version__[0] == &quot;1&quot;)
def test_function():
    pass
</pre></div>
</div>
<p>This will not run the test function if the module&#8217;s version string
does not start with a &#8220;1&#8221;.  Note that specifying a string instead
of a boolean expressions allows py.test to report meaningful information
when summarizing a test run as to what conditions lead to skipping
(or xfail-ing) tests.</p>
</li>
<li><p class="first">fix issue28 - setup_method and pytest_generate_tests work together
The setup_method fixture method now gets called also for
test function invocations generated from the pytest_generate_tests
hook.</p>
</li>
<li><p class="first">fix issue27 - collectonly and keyword-selection (-k) now work together
Also, if you do &#8220;py.test &#8211;collectonly -q&#8221; you now get a flat list
of test ids that you can use to paste to the py.test commandline
in order to execute a particular test.</p>
</li>
<li><p class="first">fix issue25 avoid reported problems with &#8211;pdb and python3.2/encodings output</p>
</li>
<li><p class="first">fix issue23 - tmpdir argument now works on Python3.2 and WindowsXP
Starting with Python3.2 os.symlink may be supported. By requiring
a newer py lib version the py.path.local() implementation acknowledges
this.</p>
</li>
<li><p class="first">fixed typos in the docs (thanks Victor Garcia, Brianna Laugher) and particular
thanks to Laura Creighton who also revieved parts of the documentation.</p>
</li>
<li><p class="first">fix slighly wrong output of verbose progress reporting for classes
(thanks Amaury)</p>
</li>
<li><p class="first">more precise (avoiding of) deprecation warnings for node.Class|Function accesses</p>
</li>
<li><p class="first">avoid std unittest assertion helper code in tracebacks (thanks Ronny)</p>
</li>
</ul>
</div>
<div class="section" id="v2-0-1">
<h2>v2.0.1<a class="headerlink" href="#v2-0-1" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>refine and unify initial capturing so that it works nicely
even if the logging module is used on an early-loaded conftest.py
file or plugin.</li>
<li>allow to omit &#8220;()&#8221; in test ids to allow for uniform test ids
as produced by Alfredo&#8217;s nice pytest.vim plugin.</li>
<li>fix issue12 - show plugin versions with &#8220;&#8211;version&#8221; and
&#8220;&#8211;traceconfig&#8221; and also document how to add extra information
to reporting test header</li>
<li>fix issue17 (import-* reporting issue on python3) by
requiring py&gt;1.4.0 (1.4.1 is going to include it)</li>
<li>fix issue10 (numpy arrays truth checking) by refining
assertion interpretation in py lib</li>
<li>fix issue15: make nose compatibility tests compatible
with python3 (now that nose-1.0 supports python3)</li>
<li>remove somewhat surprising &#8220;same-conftest&#8221; detection because
it ignores conftest.py when they appear in several subdirs.</li>
<li>improve assertions (&#8220;not in&#8221;), thanks Floris Bruynooghe</li>
<li>improve behaviour/warnings when running on top of &#8220;python -OO&#8221;
(assertions and docstrings are turned off, leading to potential
false positives)</li>
<li>introduce a pytest_cmdline_processargs(args) hook
to allow dynamic computation of command line arguments.
This fixes a regression because py.test prior to 2.0
allowed to set command line options from conftest.py
files which so far pytest-2.0 only allowed from ini-files now.</li>
<li>fix issue7: assert failures in doctest modules.
unexpected failures in doctests will not generally
show nicer, i.e. within the doctest failing context.</li>
<li>fix issue9: setup/teardown functions for an xfail-marked
test will report as xfail if they fail but report as normally
passing (not xpassing) if they succeed.  This only is true
for &#8220;direct&#8221; setup/teardown invocations because teardown_class/
teardown_module cannot closely relate to a single test.</li>
<li>fix issue14: no logging errors at process exit</li>
<li>refinements to &#8220;collecting&#8221; output on non-ttys</li>
<li>refine internal plugin registration and &#8211;traceconfig output</li>
<li>introduce a mechanism to prevent/unregister plugins from the
command line, see <a class="reference external" href="http://pytest.org/plugins.html#cmdunregister">http://pytest.org/plugins.html#cmdunregister</a></li>
<li>activate resultlog plugin by default</li>
<li>fix regression wrt yielded tests which due to the
collection-before-running semantics were not
setup as with pytest 1.3.4.  Note, however, that
the recommended and much cleaner way to do test
parametraization remains the &#8220;pytest_generate_tests&#8221;
mechanism, see the docs.</li>
</ul>
</div>
<div class="section" id="v2-0-0">
<h2>v2.0.0<a class="headerlink" href="#v2-0-0" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>pytest-2.0 is now its own package and depends on pylib-2.0</li>
<li>new ability: python -m pytest / python -m pytest.main ability</li>
<li>new python invcation: pytest.main(args, plugins) to load
some custom plugins early.</li>
<li>try harder to run unittest test suites in a more compatible manner
by deferring setup/teardown semantics to the unittest package.
also work harder to run twisted/trial and Django tests which
should now basically work by default.</li>
<li>introduce a new way to set config options via ini-style files,
by default setup.cfg and tox.ini files are searched.  The old
ways (certain environment variables, dynamic conftest.py reading
is removed).</li>
<li>add a new &#8220;-q&#8221; option which decreases verbosity and prints a more
nose/unittest-style &#8220;dot&#8221; output.</li>
<li>fix issue135 - marks now work with unittest test cases as well</li>
<li>fix issue126 - introduce py.test.set_trace() to trace execution via
PDB during the running of tests even if capturing is ongoing.</li>
<li>fix issue123 - new &#8220;python -m py.test&#8221; invocation for py.test
(requires Python 2.5 or above)</li>
<li>fix issue124 - make reporting more resilient against tests opening
files on filedescriptor 1 (stdout).</li>
<li>fix issue109 - sibling conftest.py files will not be loaded.
(and Directory collectors cannot be customized anymore from a Directory&#8217;s
conftest.py - this needs to happen at least one level up).</li>
<li>introduce (customizable) assertion failure representations and enhance
output on assertion failures for comparisons and other cases (Floris Bruynooghe)</li>
<li>nose-plugin: pass through type-signature failures in setup/teardown
functions instead of not calling them (Ed Singleton)</li>
<li>remove py.test.collect.Directory (follows from a major refactoring
and simplification of the collection process)</li>
<li>majorly reduce py.test core code, shift function/python testing to own plugin</li>
<li>fix issue88 (finding custom test nodes from command line arg)</li>
<li>refine &#8216;tmpdir&#8217; creation, will now create basenames better associated
with test names (thanks Ronny)</li>
<li>&#8220;xpass&#8221; (unexpected pass) tests don&#8217;t cause exitcode!=0</li>
<li>fix issue131 / issue60 - importing doctests in __init__ files used as namespace packages</li>
<li>fix issue93 stdout/stderr is captured while importing conftest.py</li>
<li>fix bug: unittest collected functions now also can have &#8220;pytestmark&#8221;
applied at class/module level</li>
<li>add ability to use &#8220;class&#8221; level for cached_setup helper</li>
<li>fix strangeness: mark.* objects are now immutable, create new instances</li>
</ul>
</div>
<div class="section" id="v1-3-4">
<h2>v1.3.4<a class="headerlink" href="#v1-3-4" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue111: improve install documentation for windows</li>
<li>fix issue119: fix custom collectability of __init__.py as a module</li>
<li>fix issue116: &#8211;doctestmodules work with __init__.py files as well</li>
<li>fix issue115: unify internal exception passthrough/catching/GeneratorExit</li>
<li>fix issue118: new &#8211;tb=native for presenting cpython-standard exceptions</li>
</ul>
</div>
<div class="section" id="v1-3-3">
<h2>v1.3.3<a class="headerlink" href="#v1-3-3" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue113: assertion representation problem with triple-quoted strings
(and possibly other cases)</li>
<li>make conftest loading detect that a conftest file with the same
content was already loaded, avoids surprises in nested directory structures
which can be produced e.g. by Hudson. It probably removes the need to use
&#8211;confcutdir in most cases.</li>
<li>fix terminal coloring for win32
(thanks Michael Foord for reporting)</li>
<li>fix weirdness: make terminal width detection work on stdout instead of stdin
(thanks Armin Ronacher for reporting)</li>
<li>remove trailing whitespace in all py/text distribution files</li>
</ul>
</div>
<div class="section" id="v1-3-2">
<h2>v1.3.2<a class="headerlink" href="#v1-3-2" title="Permalink to this headline"></a></h2>
<div class="section" id="new-features">
<h3>New features<a class="headerlink" href="#new-features" title="Permalink to this headline"></a></h3>
<ul>
<li><p class="first">fix issue103:  introduce py.test.raises as context manager, examples:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">with</span> <span class="n">py</span><span class="o">.</span><span class="n">test</span><span class="o">.</span><span class="n">raises</span><span class="p">(</span><span class="ne">ZeroDivisionError</span><span class="p">):</span>
    <span class="n">x</span> <span class="o">=</span> <span class="mi">0</span>
    <span class="mi">1</span> <span class="o">/</span> <span class="n">x</span>

<span class="k">with</span> <span class="n">py</span><span class="o">.</span><span class="n">test</span><span class="o">.</span><span class="n">raises</span><span class="p">(</span><span class="ne">RuntimeError</span><span class="p">)</span> <span class="k">as</span> <span class="n">excinfo</span><span class="p">:</span>
    <span class="n">call_something</span><span class="p">()</span>

<span class="c"># you may do extra checks on excinfo.value|type|traceback here</span>
</pre></div>
</div>
<p>(thanks Ronny Pfannschmidt)</p>
</li>
<li><p class="first">Funcarg factories can now dynamically apply a marker to a
test invocation.  This is for example useful if a factory
provides parameters to a test which are expected-to-fail:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">def</span> <span class="nf">pytest_funcarg__arg</span><span class="p">(</span><span class="n">request</span><span class="p">):</span>
    <span class="n">request</span><span class="o">.</span><span class="n">applymarker</span><span class="p">(</span><span class="n">py</span><span class="o">.</span><span class="n">test</span><span class="o">.</span><span class="n">mark</span><span class="o">.</span><span class="n">xfail</span><span class="p">(</span><span class="n">reason</span><span class="o">=</span><span class="s">&quot;flaky config&quot;</span><span class="p">))</span>
    <span class="o">...</span>

<span class="k">def</span> <span class="nf">test_function</span><span class="p">(</span><span class="n">arg</span><span class="p">):</span>
    <span class="o">...</span>
</pre></div>
</div>
</li>
<li><p class="first">improved error reporting on collection and import errors. This makes
use of a more general mechanism, namely that for custom test item/collect
nodes <tt class="docutils literal"><span class="pre">node.repr_failure(excinfo)</span></tt> is now uniformly called so that you can
override it to return a string error representation of your choice
which is going to be reported as a (red) string.</p>
</li>
<li><p class="first">introduce &#8216;&#8211;junitprefix=STR&#8217; option to prepend a prefix
to all reports in the junitxml file.</p>
</li>
</ul>
</div>
<div class="section" id="bug-fixes-maintenance">
<h3>Bug fixes / Maintenance<a class="headerlink" href="#bug-fixes-maintenance" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>make tests and the <tt class="docutils literal"><span class="pre">pytest_recwarn</span></tt> plugin in particular fully compatible
to Python2.7 (if you use the <tt class="docutils literal"><span class="pre">recwarn</span></tt> funcarg warnings will be enabled so that
you can properly check for their existence in a cross-python manner).</li>
<li>refine &#8211;pdb: ignore xfailed tests, unify its TB-reporting and
don&#8217;t display failures again at the end.</li>
<li>fix assertion interpretation with the ** operator (thanks Benjamin Peterson)</li>
<li>fix issue105 assignment on the same line as a failing assertion (thanks Benjamin Peterson)</li>
<li>fix issue104 proper escaping for test names in junitxml plugin (thanks anonymous)</li>
<li>fix issue57 -f|&#8211;looponfail to work with xpassing tests (thanks Ronny)</li>
<li>fix issue92 collectonly reporter and &#8211;pastebin (thanks Benjamin Peterson)</li>
<li>fix py.code.compile(source) to generate unique filenames</li>
<li>fix assertion re-interp problems on PyPy, by defering code
compilation to the (overridable) Frame.eval class. (thanks Amaury Forgeot)</li>
<li>fix py.path.local.pyimport() to work with directories</li>
<li>streamline py.path.local.mkdtemp implementation and usage</li>
<li>don&#8217;t print empty lines when showing junitxml-filename</li>
<li>add optional boolean ignore_errors parameter to py.path.local.remove</li>
<li>fix terminal writing on win32/python2.4</li>
<li>py.process.cmdexec() now tries harder to return properly encoded unicode objects
on all python versions</li>
<li>install plain py.test/py.which scripts also for Jython, this helps to
get canonical script paths in virtualenv situations</li>
<li>make path.bestrelpath(path) return &#8221;.&#8221;, note that when calling
X.bestrelpath the assumption is that X is a directory.</li>
<li>make initial conftest discovery ignore &#8220;&#8211;&#8221; prefixed arguments</li>
<li>fix resultlog plugin when used in an multicpu/multihost xdist situation
(thanks Jakub Gustak)</li>
<li>perform distributed testing related reporting in the xdist-plugin
rather than having dist-related code in the generic py.test
distribution</li>
<li>fix homedir detection on Windows</li>
<li>ship distribute_setup.py version 0.6.13</li>
</ul>
</div>
</div>
<div class="section" id="v1-3-1">
<h2>v1.3.1<a class="headerlink" href="#v1-3-1" title="Permalink to this headline"></a></h2>
<div class="section" id="id8">
<h3>New features<a class="headerlink" href="#id8" title="Permalink to this headline"></a></h3>
<ul>
<li><p class="first">issue91: introduce new py.test.xfail(reason) helper
to imperatively mark a test as expected to fail. Can
be used from within setup and test functions. This is
useful especially for parametrized tests when certain
configurations are expected-to-fail.  In this case the
declarative approach with the &#64;py.test.mark.xfail cannot
be used as it would mark all configurations as xfail.</p>
</li>
<li><p class="first">issue102: introduce new &#8211;maxfail=NUM option to stop
test runs after NUM failures.  This is a generalization
of the &#8216;-x&#8217; or &#8216;&#8211;exitfirst&#8217; option which is now equivalent
to &#8216;&#8211;maxfail=1&#8217;.  Both &#8216;-x&#8217; and &#8216;&#8211;maxfail&#8217; will
now also print a line near the end indicating the Interruption.</p>
</li>
<li><p class="first">issue89: allow py.test.mark decorators to be used on classes
(class decorators were introduced with python2.6) and
also allow to have multiple markers applied at class/module level
by specifying a list.</p>
</li>
<li><p class="first">improve and refine letter reporting in the progress bar:
.  pass
f  failed test
s  skipped tests (reminder: use for dependency/platform mismatch only)
x  xfailed test (test that was expected to fail)
X  xpassed test (test that was expected to fail but passed)</p>
<p>You can use any combination of &#8216;fsxX&#8217; with the &#8216;-r&#8217; extended
reporting option. The xfail/xpass results will show up as
skipped tests in the junitxml output - which also fixes
issue99.</p>
</li>
<li><p class="first">make py.test.cmdline.main() return the exitstatus instead of raising
SystemExit and also allow it to be called multiple times.  This of
course requires that your application and tests are properly teared
down and don&#8217;t have global state.</p>
</li>
</ul>
</div>
<div class="section" id="fixes-maintenance">
<h3>Fixes / Maintenance<a class="headerlink" href="#fixes-maintenance" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>improved traceback presentation:
- improved and unified reporting for &#8220;&#8211;tb=short&#8221; option
- Errors during test module imports are much shorter, (using &#8211;tb=short style)
- raises shows shorter more relevant tracebacks
- &#8211;fulltrace now more systematically makes traces longer / inhibits cutting</li>
<li>improve support for raises and other dynamically compiled code by
manipulating python&#8217;s linecache.cache instead of the previous
rather hacky way of creating custom code objects.  This makes
it seemlessly work on Jython and PyPy where it previously didn&#8217;t.</li>
<li>fix issue96: make capturing more resilient against Control-C
interruptions (involved somewhat substantial refactoring
to the underlying capturing functionality to avoid race
conditions).</li>
<li>fix chaining of conditional skipif/xfail decorators - so it works now
as expected to use multiple &#64;py.test.mark.skipif(condition) decorators,
including specific reporting which of the conditions lead to skipping.</li>
<li>fix issue95: late-import zlib so that it&#8217;s not required
for general py.test startup.</li>
<li>fix issue94: make reporting more robust against bogus source code
(and internally be more careful when presenting unexpected byte sequences)</li>
</ul>
</div>
</div>
<div class="section" id="v1-3-0">
<h2>v1.3.0<a class="headerlink" href="#v1-3-0" title="Permalink to this headline"></a></h2>
<ul>
<li><p class="first">deprecate &#8211;report option in favour of a new shorter and easier to
remember -r option: it takes a string argument consisting of any
combination of &#8216;xfsX&#8217; characters.  They relate to the single chars
you see during the dotted progress printing and will print an extra line
per test at the end of the test run.  This extra line indicates the exact
position or test ID that you directly paste to the py.test cmdline in order
to re-run a particular test.</p>
</li>
<li><p class="first">allow external plugins to register new hooks via the new
pytest_addhooks(pluginmanager) hook.  The new release of
the pytest-xdist plugin for distributed and looponfailing
testing requires this feature.</p>
</li>
<li><p class="first">add a new pytest_ignore_collect(path, config) hook to allow projects and
plugins to define exclusion behaviour for their directory structure -
for example you may define in a conftest.py this method:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">def</span> <span class="nf">pytest_ignore_collect</span><span class="p">(</span><span class="n">path</span><span class="p">):</span>
    <span class="k">return</span> <span class="n">path</span><span class="o">.</span><span class="n">check</span><span class="p">(</span><span class="n">link</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
</pre></div>
</div>
<p>to prevent even a collection try of any tests in symlinked dirs.</p>
</li>
<li><p class="first">new pytest_pycollect_makemodule(path, parent) hook for
allowing customization of the Module collection object for a
matching test module.</p>
</li>
<li><p class="first">extend and refine xfail mechanism:
<tt class="docutils literal"><span class="pre">&#64;py.test.mark.xfail(run=False)</span></tt> do not run the decorated test
<tt class="docutils literal"><span class="pre">&#64;py.test.mark.xfail(reason=&quot;...&quot;)</span></tt> prints the reason string in xfail summaries
specifiying <tt class="docutils literal"><span class="pre">--runxfail</span></tt> on command line virtually ignores xfail markers</p>
</li>
<li><p class="first">expose (previously internal) commonly useful methods:
py.io.get_terminal_with() -&gt; return terminal width
py.io.ansi_print(...) -&gt; print colored/bold text on linux/win32
py.io.saferepr(obj) -&gt; return limited representation string</p>
</li>
<li><p class="first">expose test outcome related exceptions as py.test.skip.Exception,
py.test.raises.Exception etc., useful mostly for plugins
doing special outcome interpretation/tweaking</p>
</li>
<li><p class="first">(issue85) fix junitxml plugin to handle tests with non-ascii output</p>
</li>
<li><p class="first">fix/refine python3 compatibility (thanks Benjamin Peterson)</p>
</li>
<li><p class="first">fixes for making the jython/win32 combination work, note however:
jython2.5.1/win32 does not provide a command line launcher, see
<a class="reference external" href="http://bugs.jython.org/issue1491">http://bugs.jython.org/issue1491</a> . See pylib install documentation
for how to work around.</p>
</li>
<li><p class="first">fixes for handling of unicode exception values and unprintable objects</p>
</li>
<li><p class="first">(issue87) fix unboundlocal error in assertionold code</p>
</li>
<li><p class="first">(issue86) improve documentation for looponfailing</p>
</li>
<li><p class="first">refine IO capturing: stdin-redirect pseudo-file now has a NOP close() method</p>
</li>
<li><p class="first">ship distribute_setup.py version 0.6.10</p>
</li>
<li><p class="first">added links to the new capturelog and coverage plugins</p>
</li>
</ul>
</div>
<div class="section" id="v1-2-0">
<h2>v1.2.0<a class="headerlink" href="#v1-2-0" title="Permalink to this headline"></a></h2>
<ul>
<li><p class="first">refined usage and options for &#8220;py.cleanup&#8221;:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">py</span><span class="o">.</span><span class="n">cleanup</span>     <span class="c"># remove &quot;*.pyc&quot; and &quot;*$py.class&quot; (jython) files</span>
<span class="n">py</span><span class="o">.</span><span class="n">cleanup</span> <span class="o">-</span><span class="n">e</span> <span class="o">.</span><span class="n">swp</span> <span class="o">-</span><span class="n">e</span> <span class="o">.</span><span class="n">cache</span> <span class="c"># also remove files with these extensions</span>
<span class="n">py</span><span class="o">.</span><span class="n">cleanup</span> <span class="o">-</span><span class="n">s</span>  <span class="c"># remove &quot;build&quot; and &quot;dist&quot; directory next to setup.py files</span>
<span class="n">py</span><span class="o">.</span><span class="n">cleanup</span> <span class="o">-</span><span class="n">d</span>  <span class="c"># also remove empty directories</span>
<span class="n">py</span><span class="o">.</span><span class="n">cleanup</span> <span class="o">-</span><span class="n">a</span>  <span class="c"># synonym for &quot;-s -d -e &#39;pip-log.txt&#39;&quot;</span>
<span class="n">py</span><span class="o">.</span><span class="n">cleanup</span> <span class="o">-</span><span class="n">n</span>  <span class="c"># dry run, only show what would be removed</span>
</pre></div>
</div>
</li>
<li><p class="first">add a new option &#8220;py.test &#8211;funcargs&#8221; which shows available funcargs
and their help strings (docstrings on their respective factory function)
for a given test path</p>
</li>
<li><p class="first">display a short and concise traceback if a funcarg lookup fails</p>
</li>
<li><p class="first">early-load &#8220;conftest.py&#8221; files in non-dot first-level sub directories.
allows to conveniently keep and access test-related options in a <tt class="docutils literal"><span class="pre">test</span></tt>
subdir and still add command line options.</p>
</li>
<li><p class="first">fix issue67: new super-short traceback-printing option: &#8220;&#8211;tb=line&#8221; will print a single line for each failing (python) test indicating its filename, lineno and the failure value</p>
</li>
<li><p class="first">fix issue78: always call python-level teardown functions even if the
according setup failed.  This includes refinements for calling setup_module/class functions
which will now only be called once instead of the previous behaviour where they&#8217;d be called
multiple times if they raise an exception (including a Skipped exception).  Any exception
will be re-corded and associated with all tests in the according module/class scope.</p>
</li>
<li><p class="first">fix issue63: assume &lt;40 columns to be a bogus terminal width, default to 80</p>
</li>
<li><p class="first">fix pdb debugging to be in the correct frame on raises-related errors</p>
</li>
<li><p class="first">update apipkg.py to fix an issue where recursive imports might
unnecessarily break importing</p>
</li>
<li><p class="first">fix plugin links</p>
</li>
</ul>
</div>
<div class="section" id="v1-1-1">
<h2>v1.1.1<a class="headerlink" href="#v1-1-1" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>moved dist/looponfailing from py.test core into a new
separately released pytest-xdist plugin.</li>
<li>new junitxml plugin: &#8211;junitxml=path will generate a junit style xml file
which is processable e.g. by the Hudson CI system.</li>
<li>new option: &#8211;genscript=path will generate a standalone py.test script
which will not need any libraries installed.  thanks to Ralf Schmitt.</li>
<li>new option: &#8211;ignore will prevent specified path from collection.
Can be specified multiple times.</li>
<li>new option: &#8211;confcutdir=dir will make py.test only consider conftest
files that are relative to the specified dir.</li>
<li>new funcarg: &#8220;pytestconfig&#8221; is the pytest config object for access
to command line args and can now be easily used in a test.</li>
<li>install &#8216;py.test&#8217; and <cite>py.which</cite> with a <tt class="docutils literal"><span class="pre">-$VERSION</span></tt> suffix to
disambiguate between Python3, python2.X, Jython and PyPy installed versions.</li>
<li>new &#8220;pytestconfig&#8221; funcarg allows access to test config object</li>
<li>new &#8220;pytest_report_header&#8221; hook can return additional lines
to be displayed at the header of a test run.</li>
<li>(experimental) allow &#8220;py.test path::name1::name2::...&#8221; for pointing
to a test within a test collection directly.  This might eventually
evolve as a full substitute to &#8220;-k&#8221; specifications.</li>
<li>streamlined plugin loading: order is now as documented in
customize.html: setuptools, ENV, commandline, conftest.
also setuptools entry point names are turned to canonical namees (&#8220;pytest_*&#8221;)</li>
<li>automatically skip tests that need &#8216;capfd&#8217; but have no os.dup</li>
<li>allow pytest_generate_tests to be defined in classes as well</li>
<li>deprecate usage of &#8216;disabled&#8217; attribute in favour of pytestmark</li>
<li>deprecate definition of Directory, Module, Class and Function nodes
in conftest.py files.  Use pytest collect hooks instead.</li>
<li>collection/item node specific runtest/collect hooks are only called exactly
on matching conftest.py files, i.e. ones which are exactly below
the filesystem path of an item</li>
<li>change: the first pytest_collect_directory hook to return something
will now prevent further hooks to be called.</li>
<li>change: figleaf plugin now requires &#8211;figleaf to run.  Also
change its long command line options to be a bit shorter (see py.test -h).</li>
<li>change: pytest doctest plugin is now enabled by default and has a
new option &#8211;doctest-glob to set a pattern for file matches.</li>
<li>change: remove internal py._* helper vars, only keep py._pydir</li>
<li>robustify capturing to survive if custom pytest_runtest_setup
code failed and prevented the capturing setup code from running.</li>
<li>make py.test.* helpers provided by default plugins visible early -
works transparently both for pydoc and for interactive sessions
which will regularly see e.g. py.test.mark and py.test.importorskip.</li>
<li>simplify internal plugin manager machinery</li>
<li>simplify internal collection tree by introducing a RootCollector node</li>
<li>fix assert reinterpreation that sees a call containing &#8220;keyword=...&#8221;</li>
<li>fix issue66: invoke pytest_sessionstart and pytest_sessionfinish
hooks on slaves during dist-testing, report module/session teardown
hooks correctly.</li>
<li>fix issue65: properly handle dist-testing if no
execnet/py lib installed remotely.</li>
<li>skip some install-tests if no execnet is available</li>
<li>fix docs, fix internal bin/ script generation</li>
</ul>
</div>
<div class="section" id="v1-1-0">
<h2>v1.1.0<a class="headerlink" href="#v1-1-0" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>introduce automatic plugin registration via &#8216;pytest11&#8217;
entrypoints via setuptools&#8217; pkg_resources.iter_entry_points</li>
<li>fix py.test dist-testing to work with execnet &gt;= 1.0.0b4</li>
<li>re-introduce py.test.cmdline.main() for better backward compatibility</li>
<li>svn paths: fix a bug with path.check(versioned=True) for svn paths,
allow &#8216;%&#8217; in svn paths, make svnwc.update() default to interactive mode
like in 1.0.x and add svnwc.update(interactive=False) to inhibit interaction.</li>
<li>refine distributed tarball to contain test and no pyc files</li>
<li>try harder to have deprecation warnings for py.compat.* accesses
report a correct location</li>
</ul>
</div>
<div class="section" id="v1-0-2">
<h2>v1.0.2<a class="headerlink" href="#v1-0-2" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>adjust and improve docs</li>
<li>remove py.rest tool and internal namespace - it was
never really advertised and can still be used with
the old release if needed.  If there is interest
it could be revived into its own tool i guess.</li>
<li>fix issue48 and issue59: raise an Error if the module
from an imported test file does not seem to come from
the filepath - avoids &#8220;same-name&#8221; confusion that has
been reported repeatedly</li>
<li>merged Ronny&#8217;s nose-compatibility hacks: now
nose-style setup_module() and setup() functions are
supported</li>
<li>introduce generalized py.test.mark function marking</li>
<li>reshuffle / refine command line grouping</li>
<li>deprecate parser.addgroup in favour of getgroup which creates option group</li>
<li>add &#8211;report command line option that allows to control showing of skipped/xfailed sections</li>
<li>generalized skipping: a new way to mark python functions with skipif or xfail
at function, class and modules level based on platform or sys-module attributes.</li>
<li>extend py.test.mark decorator to allow for positional args</li>
<li>introduce and test &#8220;py.cleanup -d&#8221; to remove empty directories</li>
<li>fix issue #59 - robustify unittest test collection</li>
<li>make bpython/help interaction work by adding an __all__ attribute
to ApiModule, cleanup initpkg</li>
<li>use MIT license for pylib, add some contributors</li>
<li>remove py.execnet code and substitute all usages with &#8216;execnet&#8217; proper</li>
<li>fix issue50 - cached_setup now caches more to expectations
for test functions with multiple arguments.</li>
<li>merge Jarko&#8217;s fixes, issue #45 and #46</li>
<li>add the ability to specify a path for py.lookup to search in</li>
<li>fix a funcarg cached_setup bug probably only occuring
in distributed testing and &#8220;module&#8221; scope with teardown.</li>
<li>many fixes and changes for making the code base python3 compatible,
many thanks to Benjamin Peterson for helping with this.</li>
<li>consolidate builtins implementation to be compatible with &gt;=2.3,
add helpers to ease keeping 2 and 3k compatible code</li>
<li>deprecate py.compat.doctest|subprocess|textwrap|optparse</li>
<li>deprecate py.magic.autopath, remove py/magic directory</li>
<li>move pytest assertion handling to py/code and a pytest_assertion
plugin, add &#8220;&#8211;no-assert&#8221; option, deprecate py.magic namespaces
in favour of (less) py.code ones.</li>
<li>consolidate and cleanup py/code classes and files</li>
<li>cleanup py/misc, move tests to bin-for-dist</li>
<li>introduce delattr/delitem/delenv methods to py.test&#8217;s monkeypatch funcarg</li>
<li>consolidate py.log implementation, remove old approach.</li>
<li>introduce py.io.TextIO and py.io.BytesIO for distinguishing between
text/unicode and byte-streams (uses underlying standard lib io.*
if available)</li>
<li>make py.unittest_convert helper script available which converts &#8220;unittest.py&#8221;
style files into the simpler assert/direct-test-classes py.test/nosetests
style.  The script was written by Laura Creighton.</li>
<li>simplified internal localpath implementation</li>
</ul>
</div>
<div class="section" id="id9">
<h2>v1.0.2<a class="headerlink" href="#id9" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fixing packaging issues, triggered by fedora redhat packaging,
also added doc, examples and contrib dirs to the tarball.</li>
<li>added a documentation link to the new django plugin.</li>
</ul>
</div>
<div class="section" id="v1-0-1">
<h2>v1.0.1<a class="headerlink" href="#v1-0-1" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>added a &#8216;pytest_nose&#8217; plugin which handles nose.SkipTest,
nose-style function/method/generator setup/teardown and
tries to report functions correctly.</li>
<li>capturing of unicode writes or encoded strings to sys.stdout/err
work better, also terminalwriting was adapted and somewhat
unified between windows and linux.</li>
<li>improved documentation layout and content a lot</li>
<li>added a &#8220;&#8211;help-config&#8221; option to show conftest.py / ENV-var names for
all longopt cmdline options, and some special conftest.py variables.
renamed &#8216;conf_capture&#8217; conftest setting to &#8216;option_capture&#8217; accordingly.</li>
<li>fix issue #27: better reporting on non-collectable items given on commandline
(e.g. pyc files)</li>
<li>fix issue #33: added &#8211;version flag (thanks Benjamin Peterson)</li>
<li>fix issue #32: adding support for &#8220;incomplete&#8221; paths to wcpath.status()</li>
<li>&#8220;Test&#8221; prefixed classes are <em>not</em> collected by default anymore if they
have an __init__ method</li>
<li>monkeypatch setenv() now accepts a &#8220;prepend&#8221; parameter</li>
<li>improved reporting of collection error tracebacks</li>
<li>simplified multicall mechanism and plugin architecture,
renamed some internal methods and argnames</li>
</ul>
</div>
<div class="section" id="v1-0-0">
<h2>v1.0.0<a class="headerlink" href="#v1-0-0" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>more terse reporting try to show filesystem path relatively to current dir</li>
<li>improve xfail output a bit</li>
</ul>
</div>
<div class="section" id="v1-0-0b9">
<h2>v1.0.0b9<a class="headerlink" href="#v1-0-0b9" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>cleanly handle and report final teardown of test setup</li>
<li>fix svn-1.6 compat issue with py.path.svnwc().versioned()
(thanks Wouter Vanden Hove)</li>
<li>setup/teardown or collection problems now show as ERRORs
or with big &#8220;E&#8220;&#8216;s in the progress lines.  they are reported
and counted separately.</li>
<li>dist-testing: properly handle test items that get locally
collected but cannot be collected on the remote side - often
due to platform/dependency reasons</li>
<li>simplified py.test.mark API - see keyword plugin documentation</li>
<li>integrate better with logging: capturing now by default captures
test functions and their immediate setup/teardown in a single stream</li>
<li>capsys and capfd funcargs now have a readouterr() and a close() method
(underlyingly py.io.StdCapture/FD objects are used which grew a
readouterr() method as well to return snapshots of captured out/err)</li>
<li>make assert-reinterpretation work better with comparisons not
returning bools (reported with numpy from thanks maciej fijalkowski)</li>
<li>reworked per-test output capturing into the pytest_iocapture.py plugin
and thus removed capturing code from config object</li>
<li>item.repr_failure(excinfo) instead of item.repr_failure(excinfo, outerr)</li>
</ul>
</div>
<div class="section" id="v1-0-0b8">
<h2>v1.0.0b8<a class="headerlink" href="#v1-0-0b8" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>pytest_unittest-plugin is now enabled by default</li>
<li>introduced pytest_keyboardinterrupt hook and
refined pytest_sessionfinish hooked, added tests.</li>
<li>workaround a buggy logging module interaction (&#8220;closing already closed
files&#8221;).  Thanks to Sridhar Ratnakumar for triggering.</li>
<li>if plugins use &#8220;py.test.importorskip&#8221; for importing
a dependency only a warning will be issued instead
of exiting the testing process.</li>
<li>many improvements to docs:
- refined funcargs doc , use the term &#8220;factory&#8221; instead of &#8220;provider&#8221;
- added a new talk/tutorial doc page
- better download page
- better plugin docstrings
- added new plugins page and automatic doc generation script</li>
<li>fixed teardown problem related to partially failing funcarg setups
(thanks MrTopf for reporting), &#8220;pytest_runtest_teardown&#8221; is now
always invoked even if the &#8220;pytest_runtest_setup&#8221; failed.</li>
<li>tweaked doctest output for docstrings in py modules,
thanks Radomir.</li>
</ul>
</div>
<div class="section" id="v1-0-0b7">
<h2>v1.0.0b7<a class="headerlink" href="#v1-0-0b7" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>renamed py.test.xfail back to py.test.mark.xfail to avoid
two ways to decorate for xfail</li>
<li>re-added py.test.mark decorator for setting keywords on functions
(it was actually documented so removing it was not nice)</li>
<li>remove scope-argument from request.addfinalizer() because
request.cached_setup has the scope arg. TOOWTDI.</li>
<li>perform setup finalization before reporting failures</li>
<li>apply modified patches from Andreas Kloeckner to allow
test functions to have no func_code (#22) and to make
&#8220;-k&#8221; and function keywords work  (#20)</li>
<li>apply patch from Daniel Peolzleithner (issue #23)</li>
<li>resolve issue #18, multiprocessing.Manager() and
redirection clash</li>
<li>make __name__ == &#8220;__channelexec__&#8221; for remote_exec code</li>
</ul>
</div>
<div class="section" id="v1-0-0b3">
<h2>v1.0.0b3<a class="headerlink" href="#v1-0-0b3" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>plugin classes are removed: one now defines
hooks directly in conftest.py or global pytest_*.py
files.</li>
<li>added new pytest_namespace(config) hook that allows
to inject helpers directly to the py.test.* namespace.</li>
<li>documented and refined many hooks</li>
<li>added new style of generative tests via
pytest_generate_tests hook that integrates
well with function arguments.</li>
</ul>
</div>
<div class="section" id="v1-0-0b1">
<h2>v1.0.0b1<a class="headerlink" href="#v1-0-0b1" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>introduced new &#8220;funcarg&#8221; setup method,
see doc/test/funcarg.txt</li>
<li>introduced plugin architecuture and many
new py.test plugins, see
doc/test/plugins.txt</li>
<li>teardown_method is now guaranteed to get
called after a test method has run.</li>
<li>new method: py.test.importorskip(mod,minversion)
will either import or call py.test.skip()</li>
<li>completely revised internal py.test architecture</li>
<li>new py.process.ForkedFunc object allowing to
fork execution of a function to a sub process
and getting a result back.</li>
</ul>
<p>XXX lots of things missing here XXX</p>
</div>
<div class="section" id="v0-9-2">
<h2>v0.9.2<a class="headerlink" href="#v0-9-2" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>refined installation and metadata, created new setup.py,
now based on setuptools/ez_setup (thanks to Ralf Schmitt
for his support).</li>
<li>improved the way of making py.* scripts available in
windows environments, they are now added to the
Scripts directory as &#8221;.cmd&#8221; files.</li>
<li>py.path.svnwc.status() now is more complete and
uses xml output from the &#8216;svn&#8217; command if available
(Guido Wesdorp)</li>
<li>fix for py.path.svn* to work with svn 1.5
(Chris Lamb)</li>
<li>fix path.relto(otherpath) method on windows to
use normcase for checking if a path is relative.</li>
<li>py.test&#8217;s traceback is better parseable from editors
(follows the filenames:LINENO: MSG convention)
(thanks to Osmo Salomaa)</li>
<li>fix to javascript-generation, &#8220;py.test &#8211;runbrowser&#8221;
should work more reliably now</li>
<li>removed previously accidentally added
py.test.broken and py.test.notimplemented helpers.</li>
<li>there now is a py.__version__ attribute</li>
</ul>
</div>
<div class="section" id="v0-9-1">
<h2>v0.9.1<a class="headerlink" href="#v0-9-1" title="Permalink to this headline"></a></h2>
<p>This is a fairly complete list of v0.9.1, which can
serve as a reference for developers.</p>
<ul class="simple">
<li>allowing + signs in py.path.svn urls [39106]</li>
<li>fixed support for Failed exceptions without excinfo in py.test [39340]</li>
<li>added support for killing processes for Windows (as well as platforms that
support os.kill) in py.misc.killproc [39655]</li>
<li>added setup/teardown for generative tests to py.test [40702]</li>
<li>added detection of FAILED TO LOAD MODULE to py.test [40703, 40738, 40739]</li>
<li>fixed problem with calling .remove() on wcpaths of non-versioned files in
py.path [44248]</li>
<li>fixed some import and inheritance issues in py.test [41480, 44648, 44655]</li>
<li>fail to run greenlet tests when pypy is available, but without stackless
[45294]</li>
<li>small fixes in rsession tests [45295]</li>
<li>fixed issue with 2.5 type representations in py.test [45483, 45484]</li>
<li>made that internal reporting issues displaying is done atomically in py.test
[45518]</li>
<li>made that non-existing files are igored by the py.lookup script [45519]</li>
<li>improved exception name creation in py.test [45535]</li>
<li>made that less threads are used in execnet [merge in 45539]</li>
<li>removed lock required for atomical reporting issue displaying in py.test
[45545]</li>
<li>removed globals from execnet [45541, 45547]</li>
<li>refactored cleanup mechanics, made that setDaemon is set to 1 to make atexit
get called in 2.5 (py.execnet) [45548]</li>
<li>fixed bug in joining threads in py.execnet&#8217;s servemain [45549]</li>
<li>refactored py.test.rsession tests to not rely on exact output format anymore
[45646]</li>
<li>using repr() on test outcome [45647]</li>
<li>added &#8216;Reason&#8217; classes for py.test.skip() [45648, 45649]</li>
<li>killed some unnecessary sanity check in py.test.collect [45655]</li>
<li>avoid using os.tmpfile() in py.io.fdcapture because on Windows it&#8217;s only
usable by Administrators [45901]</li>
<li>added support for locking and non-recursive commits to py.path.svnwc [45994]</li>
<li>locking files in py.execnet to prevent CPython from segfaulting [46010]</li>
<li>added export() method to py.path.svnurl</li>
<li>fixed -d -x in py.test [47277]</li>
<li>fixed argument concatenation problem in py.path.svnwc [49423]</li>
<li>restore py.test behaviour that it exits with code 1 when there are failures
[49974]</li>
<li>don&#8217;t fail on html files that don&#8217;t have an accompanying .txt file [50606]</li>
<li>fixed &#8216;utestconvert.py &lt; input&#8217; [50645]</li>
<li>small fix for code indentation in py.code.source [50755]</li>
<li>fix _docgen.py documentation building [51285]</li>
<li>improved checks for source representation of code blocks in py.test [51292]</li>
<li>added support for passing authentication to py.path.svn* objects [52000,
52001]</li>
<li>removed sorted() call for py.apigen tests in favour of [].sort() to support
Python 2.3 [52481]</li>
</ul>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="contents.html">
              <img class="logo" src="_static/pytest1.png" alt="Logo"/>
            </a></p><h3><a href="contents.html">Table Of Contents</a></h3>

<ul>
  <li><a href="index.html">Home</a></li>
  <li><a href="contents.html">Contents</a></li>
  <li><a href="getting-started.html">Install</a></li>
  <li><a href="example/index.html">Examples</a></li>
  <li><a href="customize.html">Customize</a></li>
  <li><a href="contact.html">Contact</a></li>
  <li><a href="talks.html">Talks/Posts</a></li>
  <li><a href="#">Changelog</a></li>
</ul>
  <hr>
  <ul>
<li><a class="reference internal" href="#">Changelog history</a><ul>
<li><a class="reference internal" href="#id1">2.6.3</a></li>
<li><a class="reference internal" href="#id2">2.6.2</a></li>
<li><a class="reference internal" href="#id3">2.6.1</a></li>
<li><a class="reference internal" href="#id4">2.6</a></li>
<li><a class="reference internal" href="#id5">2.5.2</a></li>
<li><a class="reference internal" href="#id6">2.5.1</a></li>
<li><a class="reference internal" href="#id7">2.5.0</a></li>
<li><a class="reference internal" href="#v2-4-2">v2.4.2</a></li>
<li><a class="reference internal" href="#v2-4-1">v2.4.1</a></li>
<li><a class="reference internal" href="#v2-4">v2.4</a></li>
<li><a class="reference internal" href="#v2-3-5">v2.3.5</a></li>
<li><a class="reference internal" href="#v2-3-4">v2.3.4</a></li>
<li><a class="reference internal" href="#v2-3-3">v2.3.3</a></li>
<li><a class="reference internal" href="#v2-3-2">v2.3.2</a></li>
<li><a class="reference internal" href="#v2-3-1">v2.3.1</a></li>
<li><a class="reference internal" href="#v2-3-0">v2.3.0</a></li>
<li><a class="reference internal" href="#v2-2-4">v2.2.4</a></li>
<li><a class="reference internal" href="#v2-2-3">v2.2.3</a></li>
<li><a class="reference internal" href="#v2-2-2">v2.2.2</a></li>
<li><a class="reference internal" href="#v2-2-1">v2.2.1</a></li>
<li><a class="reference internal" href="#v2-2-0">v2.2.0</a></li>
<li><a class="reference internal" href="#v2-1-3">v2.1.3</a></li>
<li><a class="reference internal" href="#v2-1-2">v2.1.2</a></li>
<li><a class="reference internal" href="#v2-1-1">v2.1.1</a></li>
<li><a class="reference internal" href="#v2-1-0">v2.1.0</a></li>
<li><a class="reference internal" href="#v2-0-3">v2.0.3</a></li>
<li><a class="reference internal" href="#v2-0-2">v2.0.2</a></li>
<li><a class="reference internal" href="#v2-0-1">v2.0.1</a></li>
<li><a class="reference internal" href="#v2-0-0">v2.0.0</a></li>
<li><a class="reference internal" href="#v1-3-4">v1.3.4</a></li>
<li><a class="reference internal" href="#v1-3-3">v1.3.3</a></li>
<li><a class="reference internal" href="#v1-3-2">v1.3.2</a><ul>
<li><a class="reference internal" href="#new-features">New features</a></li>
<li><a class="reference internal" href="#bug-fixes-maintenance">Bug fixes / Maintenance</a></li>
</ul>
</li>
<li><a class="reference internal" href="#v1-3-1">v1.3.1</a><ul>
<li><a class="reference internal" href="#id8">New features</a></li>
<li><a class="reference internal" href="#fixes-maintenance">Fixes / Maintenance</a></li>
</ul>
</li>
<li><a class="reference internal" href="#v1-3-0">v1.3.0</a></li>
<li><a class="reference internal" href="#v1-2-0">v1.2.0</a></li>
<li><a class="reference internal" href="#v1-1-1">v1.1.1</a></li>
<li><a class="reference internal" href="#v1-1-0">v1.1.0</a></li>
<li><a class="reference internal" href="#v1-0-2">v1.0.2</a></li>
<li><a class="reference internal" href="#id9">v1.0.2</a></li>
<li><a class="reference internal" href="#v1-0-1">v1.0.1</a></li>
<li><a class="reference internal" href="#v1-0-0">v1.0.0</a></li>
<li><a class="reference internal" href="#v1-0-0b9">v1.0.0b9</a></li>
<li><a class="reference internal" href="#v1-0-0b8">v1.0.0b8</a></li>
<li><a class="reference internal" href="#v1-0-0b7">v1.0.0b7</a></li>
<li><a class="reference internal" href="#v1-0-0b3">v1.0.0b3</a></li>
<li><a class="reference internal" href="#v1-0-0b1">v1.0.0b1</a></li>
<li><a class="reference internal" href="#v0-9-2">v0.9.2</a></li>
<li><a class="reference internal" href="#v0-9-1">v0.9.1</a></li>
</ul>
</li>
</ul>
<h3>Related Topics</h3>
<ul>
  <li><a href="contents.html">Documentation overview</a><ul>
      <li>Previous: <a href="announce/release-2.0.0.html" title="previous chapter">py.test 2.0.0: asserts++, unittest++, reporting++, config++, docs++</a></li>
  </ul></li>
</ul><h3>Useful Links</h3>
<ul>
  <li><a href="index.html">The pytest Website</a></li>
  <li><a href="contributing.html">Contribution Guide</a></li>
  <li><a href="https://pypi.python.org/pypi/pytest">pytest @ PyPI</a></li>
  <li><a href="https://bitbucket.org/hpk42/pytest/">pytest @ Bitbucket</a></li>
  <li><a href="http://pytest.org/latest/plugins_index/index.html">3rd party plugins</a></li>
  <li><a href="https://bitbucket.org/hpk42/pytest/issues?status=new&status=open">Issue Tracker</a></li>
  <li><a href="http://pytest.org/latest/pytest.pdf">PDF Documentation</a>
</ul>

<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>

  <div class="footer">
    &copy; Copyright 2014, holger krekel.
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
  </div>
  

  </body>
</html>