aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Lamy <ronan.lamy@gmail.com>2018-12-07 06:19:58 +0000
committerRonan Lamy <ronan.lamy@gmail.com>2018-12-07 06:19:58 +0000
commit4e9a13085e9857393f61dc7fb6f90b25ca0526ec (patch)
treea01fb1fb43f5e84ee32e98c5002add1abec3c4e1
parentModernise tests, remove compatibility hacks for obsolete Pythons (diff)
downloadpypy-4e9a13085e9857393f61dc7fb6f90b25ca0526ec.tar.gz
pypy-4e9a13085e9857393f61dc7fb6f90b25ca0526ec.tar.bz2
pypy-4e9a13085e9857393f61dc7fb6f90b25ca0526ec.zip
Move test_syslog
-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')