aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra_tests/test_syslog.py7
-rw-r--r--pypy/module/test_lib_pypy/test_syslog.py15
2 files changed, 7 insertions, 15 deletions
diff --git a/extra_tests/test_syslog.py b/extra_tests/test_syslog.py
new file mode 100644
index 0000000000..54c1283741
--- /dev/null
+++ b/extra_tests/test_syslog.py
@@ -0,0 +1,7 @@
+import pytest
+syslog = pytest.importorskip('syslog')
+
+# XXX very minimal test
+
+def test_syslog():
+ assert hasattr(syslog, 'LOG_ALERT')
diff --git a/pypy/module/test_lib_pypy/test_syslog.py b/pypy/module/test_lib_pypy/test_syslog.py
deleted file mode 100644
index a69b70c1d3..0000000000
--- a/pypy/module/test_lib_pypy/test_syslog.py
+++ /dev/null
@@ -1,15 +0,0 @@
-from __future__ import absolute_import
-import sys, py
-try:
- from lib_pypy import syslog
-except ImportError:
- py.test.skip('no syslog on this platform')
-except AssertionError:
- if '__pypy__' in sys.builtin_module_names:
- raise
- py.test.skip('AssertionError during import (wrong cffi version?)')
-
-# XXX very minimal test
-
-def test_syslog():
- assert hasattr(syslog, 'LOG_ALERT')