Commit e9ef480b authored by Denis Bilenko's avatar Denis Bilenko

travis: enable debug python

- greentest.py: fix walk_modules() for python-dbg
- update known_failures.txt
parent 37eb599d
......@@ -5,19 +5,33 @@ python:
- "2.7"
env:
- EXTRA=1
- GEVENTSETUP_EV_VERIFY=3
- GEVENT_FILE=thread
- GEVENT_BACKEND=select GEVENTSETUP_EV_VERIFY=3
- GEVENT_BACKEND=poll GEVENTSETUP_EV_VERIFY=3
- GEVENT_BACKEND=signalfd
# - GEVENT_BACKEND=nosigmask
# - GEVENT_BACKEND=noinotify
matrix:
allow_failures:
- env: GEVENT_BACKEND=signalfd
- env: GEVENT_BACKEND=signalfd
- python: 2.5
env: DEBUGPY=-dbg GEVENTSETUP_EV_VERIFY=3
include:
- python: 2.7
env: DEBUGPY=-dbg GEVENTSETUP_EV_VERIFY=3
- python: 2.7
env: DEBUGPY=-dbg GEVENTSETUP_EV_VERIFY=3 GEVENT_FILE=thread
- python: 2.7
env: GEVENT_BACKEND=select GEVENTSETUP_EV_VERIFY=3
- python: 2.7
env: GEVENT_BACKEND=poll GEVENTSETUP_EV_VERIFY=3
- python: 2.7
env: GEVENT_BACKEND=nosigmask,noinotify GEVENTSETUP_EV_VERIFY=3
- python: 2.6
env: DEBUGPY=-dbg GEVENTSETUP_EV_VERIFY=3
- python: 2.5
env: DEBUGPY=-dbg GEVENTSETUP_EV_VERIFY=3
install:
- deactivate
- export VER=$TRAVIS_PYTHON_VERSION
- export VER=$TRAVIS_PYTHON_VERSION$DEBUGPY
- sudo apt-get update -qq
- sudo apt-get install -q python$VER
- export PYTHON=/usr/bin/python$VER
- echo $PYTHON && $PYTHON --version
- sudo -E ./travis_install_deps.sh
......
......@@ -388,8 +388,12 @@ def walk_modules(basedir=None, modpath=None, include_so=False):
for p, m in walk_modules(path, modpath + fn + "."):
yield p, m
continue
if fn.endswith('.py') and fn not in ['__init__.py', 'core.py', 'ares.py', '_util.py', '_semaphore.py']:
yield path, modpath + fn[:-3]
if fn.endswith('.py'):
x = fn[:-3]
if x.endswith('_d'):
x = x[:-2]
if x not in ['__init__', 'core', 'ares', '_util', '_semaphore']:
yield path, modpath + x
elif include_so and fn.endswith('.so'):
if fn.endswith('_d.so'):
yield path, modpath + fn[:-5]
......
......@@ -18,8 +18,10 @@ win32 * C:\Python27\python.exe -u -m monkey_test test_subprocess.py
win32 * C:\Python27\python.exe -u -m monkey_test --Event test_subprocess.py
# these need investigating:
* * /usr/bin/python2.5 -u -m monkey_test --Event test_urllib2net.py
* * /usr/bin/python2.5 -u -m monkey_test test_urllib2net.py
* * /usr/bin/python2.5 -u test__threading_vs_settrace.py
* * /usr/bin/python2.5 -u test__example_portforwarder.py
* * /usr/bin/python2.5 -u test__socket_close.py
* * /usr/bin/python2.5(-dbg)? -u -m monkey_test --Event test_urllib2net.py
* * /usr/bin/python2.5(-dbg)? -u -m monkey_test test_urllib2net.py
* * /usr/bin/python2.5(-dbg)? -u test__threading_vs_settrace.py
* * /usr/bin/python2.5(-dbg)? -u test__example_portforwarder.py
* * /usr/bin/python2.5(-dbg)? -u test__socket_close.py
* * /usr/bin/python2.[567]-dbg -u test__backdoor.py
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment