From 7fc7b4307b2ec7250dca914b04951368d27e5480 Mon Sep 17 00:00:00 2001
From: holger krekel <holger@merlinux.eu>
Date: Sat, 22 May 2010 17:22:31 +0200
Subject: [PATCH] adding xfail example

--HG--
branch : trunk
---
 doc/example/xfail_demo.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 doc/example/xfail_demo.py

diff --git a/doc/example/xfail_demo.py b/doc/example/xfail_demo.py
new file mode 100644
index 000000000..ec98cdb89
--- /dev/null
+++ b/doc/example/xfail_demo.py
@@ -0,0 +1,16 @@
+import py
+
+@py.test.mark.xfail
+def test_hello():
+    assert 0
+
+@py.test.mark.xfail(run=False)
+def test_hello2():
+    assert 0
+
+@py.test.mark.xfail("hasattr(os, 'sep')")
+def test_hello3():
+    assert 0
+
+def test_hello5():
+    py.test.xfail("reason")