aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorholger krekel <holger@merlinux.eu>2011-01-18 14:13:31 +0100
committerholger krekel <holger@merlinux.eu>2011-01-18 14:13:31 +0100
commitcd173a7f26ee3df1e038c131a3270036d7f561d0 (patch)
tree9c7db1502305a2419243f9a8e852c2323f2b1088 /pytest.py
parentFix test_compile_framework_vref on 64-bit. (diff)
downloadpypy-cd173a7f26ee3df1e038c131a3270036d7f561d0.tar.gz
pypy-cd173a7f26ee3df1e038c131a3270036d7f561d0.tar.bz2
pypy-cd173a7f26ee3df1e038c131a3270036d7f561d0.zip
remove old py copy, add current pytest and py lib snapshots (from pytest-2.0.1dev and py-1.4.1dev)
and some initial tweeks to conftest.py
Diffstat (limited to 'pytest.py')
-rw-r--r--pytest.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/pytest.py b/pytest.py
new file mode 100644
index 0000000000..fe55b153fd
--- /dev/null
+++ b/pytest.py
@@ -0,0 +1,13 @@
+"""
+unit and functional testing with Python.
+"""
+__version__ = '2.0.1.dev9'
+__all__ = ['main']
+
+from _pytest.core import main, UsageError, _preloadplugins
+from _pytest import core as cmdline
+
+if __name__ == '__main__': # if run as a script or by 'python -m pytest'
+ raise SystemExit(main())
+else:
+ _preloadplugins() # to populate pytest.* namespace so help(pytest) works