~crunch.io/ubuntu/precise/codespeak-lib/unstable

« back to all changes in this revision

Viewing changes to doc/example/xfail_demo.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-08-01 16:24:01 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100801162401-g37v49d1p148alpm
Tags: 1.3.3-1
* New upstream release.
* Bump Standards-Version to 3.9.1.
* Fix typo in py.test manpage.
* Prefer Breaks: over Conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import py
 
2
 
 
3
@py.test.mark.xfail
 
4
def test_hello():
 
5
    assert 0
 
6
 
 
7
@py.test.mark.xfail(run=False)
 
8
def test_hello2():
 
9
    assert 0
 
10
 
 
11
@py.test.mark.xfail("hasattr(os, 'sep')")
 
12
def test_hello3():
 
13
    assert 0
 
14
 
 
15
def test_hello5():
 
16
    py.test.xfail("reason")