1 new changeset in pytest:

http://bitbucket.org/hpk42/pytest/changeset/20aeb0b05925/
changeset:   20aeb0b05925
user:        gutworth
date:        2011-07-04 02:28:48
summary:     test files are rewritten in a subprocess
affected #:  1 file (60 bytes)

--- a/testing/test_assertion.py Wed Jun 29 14:00:13 2011 -0500
+++ b/testing/test_assertion.py Sun Jul 03 19:28:48 2011 -0500
@@ -120,9 +120,12 @@
         expl = ' '.join(callequal('foo', 'bar'))
         assert 'raised in repr()' not in expl
 
-@pytest.mark.skipif("config._assertstate.mode != 'rewrite'")
-def test_rewritten():
-    assert "@py_builtins" in globals()
+def test_rewritten(testdir):
+    testdir.makepyfile("""
+        def test_rewritten():
+            assert "@py_builtins" in globals()
+    """)
+    assert testdir.runpytest().ret == 0
 
 def test_reprcompare_notin():
     detail = plugin.pytest_assertrepr_compare('not in', 'foo', 'aaafoobbb')[1:]

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
py-svn mailing list
py-svn@codespeak.net
http://codespeak.net/mailman/listinfo/py-svn

Reply via email to