Commit 540c2c20 authored by Denis Bilenko's avatar Denis Bilenko

test__doctests.py: add 'socket' to the globals for doctests

parent 78a0188b
...@@ -3,6 +3,7 @@ import re ...@@ -3,6 +3,7 @@ import re
import doctest import doctest
import unittest import unittest
import gevent import gevent
from gevent import socket
base = os.path.dirname(gevent.__file__) base = os.path.dirname(gevent.__file__)
modules = set() modules = set()
...@@ -10,7 +11,7 @@ modules = set() ...@@ -10,7 +11,7 @@ modules = set()
def myfunction(*args, **kwargs): def myfunction(*args, **kwargs):
pass pass
globs = {'myfunction': myfunction, 'gevent': gevent} globs = {'myfunction': myfunction, 'gevent': gevent, 'socket': socket}
for path, dirs, files in os.walk(base): for path, dirs, files in os.walk(base):
package = 'gevent' + path.replace(base, '').replace('/', '.') package = 'gevent' + path.replace(base, '').replace('/', '.')
......
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