com.googler.python 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -0
- package/python3 +6 -0
- package/python3.4.2/bin/2to3 +5 -0
- package/python3.4.2/bin/2to3-3.4 +5 -0
- package/python3.4.2/bin/android-debian-builder +10 -0
- package/python3.4.2/bin/easy_install-3.4 +11 -0
- package/python3.4.2/bin/idle3 +5 -0
- package/python3.4.2/bin/idle3.4 +5 -0
- package/python3.4.2/bin/pip3 +11 -0
- package/python3.4.2/bin/pip3.4 +11 -0
- package/python3.4.2/bin/pydoc3 +5 -0
- package/python3.4.2/bin/pydoc3.4 +5 -0
- package/python3.4.2/bin/python3-config +111 -0
- package/python3.4.2/bin/python3.4 +0 -0
- package/python3.4.2/bin/python3.4-config +111 -0
- package/python3.4.2/bin/python3.4m-config +111 -0
- package/python3.4.2/bin/pyvenv +11 -0
- package/python3.4.2/bin/pyvenv-3.4 +11 -0
- package/python3.4.2/include/python3.4m/Python-ast.h +569 -0
- package/python3.4.2/include/python3.4m/Python.h +133 -0
- package/python3.4.2/include/python3.4m/abstract.h +1267 -0
- package/python3.4.2/include/python3.4m/accu.h +37 -0
- package/python3.4.2/include/python3.4m/asdl.h +45 -0
- package/python3.4.2/include/python3.4m/ast.h +22 -0
- package/python3.4.2/include/python3.4m/bitset.h +32 -0
- package/python3.4.2/include/python3.4m/bltinmodule.h +14 -0
- package/python3.4.2/include/python3.4m/boolobject.h +34 -0
- package/python3.4.2/include/python3.4m/bytearrayobject.h +62 -0
- package/python3.4.2/include/python3.4m/bytes_methods.h +46 -0
- package/python3.4.2/include/python3.4m/bytesobject.h +128 -0
- package/python3.4.2/include/python3.4m/cellobject.h +29 -0
- package/python3.4.2/include/python3.4m/ceval.h +205 -0
- package/python3.4.2/include/python3.4m/classobject.h +58 -0
- package/python3.4.2/include/python3.4m/code.h +115 -0
- package/python3.4.2/include/python3.4m/codecs.h +233 -0
- package/python3.4.2/include/python3.4m/compile.h +72 -0
- package/python3.4.2/include/python3.4m/complexobject.h +77 -0
- package/python3.4.2/include/python3.4m/datetime.h +243 -0
- package/python3.4.2/include/python3.4m/descrobject.h +105 -0
- package/python3.4.2/include/python3.4m/dictobject.h +126 -0
- package/python3.4.2/include/python3.4m/dtoa.h +19 -0
- package/python3.4.2/include/python3.4m/dynamic_annotations.h +499 -0
- package/python3.4.2/include/python3.4m/enumobject.h +17 -0
- package/python3.4.2/include/python3.4m/errcode.h +38 -0
- package/python3.4.2/include/python3.4m/eval.h +27 -0
- package/python3.4.2/include/python3.4m/fileobject.h +58 -0
- package/python3.4.2/include/python3.4m/fileutils.h +79 -0
- package/python3.4.2/include/python3.4m/floatobject.h +128 -0
- package/python3.4.2/include/python3.4m/frameobject.h +95 -0
- package/python3.4.2/include/python3.4m/funcobject.h +89 -0
- package/python3.4.2/include/python3.4m/genobject.h +46 -0
- package/python3.4.2/include/python3.4m/graminit.h +84 -0
- package/python3.4.2/include/python3.4m/grammar.h +93 -0
- package/python3.4.2/include/python3.4m/import.h +130 -0
- package/python3.4.2/include/python3.4m/intrcheck.h +21 -0
- package/python3.4.2/include/python3.4m/iterobject.h +25 -0
- package/python3.4.2/include/python3.4m/listobject.h +80 -0
- package/python3.4.2/include/python3.4m/longintrepr.h +103 -0
- package/python3.4.2/include/python3.4m/longobject.h +204 -0
- package/python3.4.2/include/python3.4m/marshal.h +28 -0
- package/python3.4.2/include/python3.4m/memoryobject.h +74 -0
- package/python3.4.2/include/python3.4m/metagrammar.h +18 -0
- package/python3.4.2/include/python3.4m/methodobject.h +93 -0
- package/python3.4.2/include/python3.4m/modsupport.h +132 -0
- package/python3.4.2/include/python3.4m/moduleobject.h +63 -0
- package/python3.4.2/include/python3.4m/namespaceobject.h +17 -0
- package/python3.4.2/include/python3.4m/node.h +44 -0
- package/python3.4.2/include/python3.4m/object.h +1015 -0
- package/python3.4.2/include/python3.4m/objimpl.h +361 -0
- package/python3.4.2/include/python3.4m/opcode.h +159 -0
- package/python3.4.2/include/python3.4m/osdefs.h +50 -0
- package/python3.4.2/include/python3.4m/parsetok.h +108 -0
- package/python3.4.2/include/python3.4m/patchlevel.h +35 -0
- package/python3.4.2/include/python3.4m/pgen.h +18 -0
- package/python3.4.2/include/python3.4m/pgenheaders.h +42 -0
- package/python3.4.2/include/python3.4m/py_curses.h +177 -0
- package/python3.4.2/include/python3.4m/pyarena.h +64 -0
- package/python3.4.2/include/python3.4m/pyatomic.h +184 -0
- package/python3.4.2/include/python3.4m/pycapsule.h +59 -0
- package/python3.4.2/include/python3.4m/pyconfig.h +1503 -0
- package/python3.4.2/include/python3.4m/pyctype.h +33 -0
- package/python3.4.2/include/python3.4m/pydebug.h +34 -0
- package/python3.4.2/include/python3.4m/pyerrors.h +464 -0
- package/python3.4.2/include/python3.4m/pyexpat.h +53 -0
- package/python3.4.2/include/python3.4m/pyfpe.h +176 -0
- package/python3.4.2/include/python3.4m/pygetopt.h +21 -0
- package/python3.4.2/include/python3.4m/pyhash.h +149 -0
- package/python3.4.2/include/python3.4m/pymacconfig.h +102 -0
- package/python3.4.2/include/python3.4m/pymacro.h +78 -0
- package/python3.4.2/include/python3.4m/pymath.h +190 -0
- package/python3.4.2/include/python3.4m/pymem.h +183 -0
- package/python3.4.2/include/python3.4m/pyport.h +883 -0
- package/python3.4.2/include/python3.4m/pystate.h +271 -0
- package/python3.4.2/include/python3.4m/pystrcmp.h +23 -0
- package/python3.4.2/include/python3.4m/pystrtod.h +41 -0
- package/python3.4.2/include/python3.4m/pythonrun.h +304 -0
- package/python3.4.2/include/python3.4m/pythread.h +93 -0
- package/python3.4.2/include/python3.4m/pytime.h +105 -0
- package/python3.4.2/include/python3.4m/rangeobject.h +27 -0
- package/python3.4.2/include/python3.4m/setobject.h +113 -0
- package/python3.4.2/include/python3.4m/sliceobject.h +50 -0
- package/python3.4.2/include/python3.4m/structmember.h +76 -0
- package/python3.4.2/include/python3.4m/structseq.h +49 -0
- package/python3.4.2/include/python3.4m/symtable.h +122 -0
- package/python3.4.2/include/python3.4m/sysmodule.h +43 -0
- package/python3.4.2/include/python3.4m/token.h +87 -0
- package/python3.4.2/include/python3.4m/traceback.h +72 -0
- package/python3.4.2/include/python3.4m/tupleobject.h +73 -0
- package/python3.4.2/include/python3.4m/typeslots.h +76 -0
- package/python3.4.2/include/python3.4m/ucnhash.h +36 -0
- package/python3.4.2/include/python3.4m/unicodeobject.h +2271 -0
- package/python3.4.2/include/python3.4m/warnings.h +54 -0
- package/python3.4.2/include/python3.4m/weakrefobject.h +86 -0
- package/python3.4.2/lib/pkgconfig/python-3.4.pc +13 -0
- package/python3.4.2/lib/pkgconfig/python-3.4m.pc +13 -0
- package/python3.4.2/lib/pkgconfig/python3.pc +13 -0
- package/python3.4.2/lib/python3.4/LICENSE.txt +254 -0
- package/python3.4.2/lib/python3.4/__future__.py +134 -0
- package/python3.4.2/lib/python3.4/__phello__.foo.py +1 -0
- package/python3.4.2/lib/python3.4/__pycache__/_bootlocale.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/_collections_abc.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/_sitebuiltins.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/_sysconfigdata.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/_weakrefset.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/abc.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/codecs.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/genericpath.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/io.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/os.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/posixpath.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/rlcompleter.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/site.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/stat.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/__pycache__/sysconfig.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/_bootlocale.py +34 -0
- package/python3.4.2/lib/python3.4/_collections_abc.py +753 -0
- package/python3.4.2/lib/python3.4/_compat_pickle.py +137 -0
- package/python3.4.2/lib/python3.4/_dummy_thread.py +155 -0
- package/python3.4.2/lib/python3.4/_markupbase.py +395 -0
- package/python3.4.2/lib/python3.4/_osx_support.py +502 -0
- package/python3.4.2/lib/python3.4/_pyio.py +2105 -0
- package/python3.4.2/lib/python3.4/_sitebuiltins.py +103 -0
- package/python3.4.2/lib/python3.4/_strptime.py +511 -0
- package/python3.4.2/lib/python3.4/_sysconfigdata.py +710 -0
- package/python3.4.2/lib/python3.4/_threading_local.py +246 -0
- package/python3.4.2/lib/python3.4/_weakrefset.py +196 -0
- package/python3.4.2/lib/python3.4/abc.py +248 -0
- package/python3.4.2/lib/python3.4/aifc.py +918 -0
- package/python3.4.2/lib/python3.4/antigravity.py +17 -0
- package/python3.4.2/lib/python3.4/argparse.py +2379 -0
- package/python3.4.2/lib/python3.4/ast.py +315 -0
- package/python3.4.2/lib/python3.4/asynchat.py +333 -0
- package/python3.4.2/lib/python3.4/asyncio/__init__.py +48 -0
- package/python3.4.2/lib/python3.4/asyncio/base_events.py +1055 -0
- package/python3.4.2/lib/python3.4/asyncio/base_subprocess.py +197 -0
- package/python3.4.2/lib/python3.4/asyncio/constants.py +7 -0
- package/python3.4.2/lib/python3.4/asyncio/coroutines.py +195 -0
- package/python3.4.2/lib/python3.4/asyncio/events.py +586 -0
- package/python3.4.2/lib/python3.4/asyncio/futures.py +411 -0
- package/python3.4.2/lib/python3.4/asyncio/locks.py +469 -0
- package/python3.4.2/lib/python3.4/asyncio/log.py +7 -0
- package/python3.4.2/lib/python3.4/asyncio/proactor_events.py +499 -0
- package/python3.4.2/lib/python3.4/asyncio/protocols.py +129 -0
- package/python3.4.2/lib/python3.4/asyncio/queues.py +288 -0
- package/python3.4.2/lib/python3.4/asyncio/selector_events.py +996 -0
- package/python3.4.2/lib/python3.4/asyncio/streams.py +485 -0
- package/python3.4.2/lib/python3.4/asyncio/subprocess.py +228 -0
- package/python3.4.2/lib/python3.4/asyncio/tasks.py +658 -0
- package/python3.4.2/lib/python3.4/asyncio/test_utils.py +425 -0
- package/python3.4.2/lib/python3.4/asyncio/transports.py +298 -0
- package/python3.4.2/lib/python3.4/asyncio/unix_events.py +922 -0
- package/python3.4.2/lib/python3.4/asyncio/windows_events.py +634 -0
- package/python3.4.2/lib/python3.4/asyncio/windows_utils.py +207 -0
- package/python3.4.2/lib/python3.4/asyncore.py +666 -0
- package/python3.4.2/lib/python3.4/base64.py +602 -0
- package/python3.4.2/lib/python3.4/bdb.py +673 -0
- package/python3.4.2/lib/python3.4/binhex.py +471 -0
- package/python3.4.2/lib/python3.4/bisect.py +92 -0
- package/python3.4.2/lib/python3.4/bz2.py +521 -0
- package/python3.4.2/lib/python3.4/cProfile.py +160 -0
- package/python3.4.2/lib/python3.4/calendar.py +703 -0
- package/python3.4.2/lib/python3.4/cgi.py +1061 -0
- package/python3.4.2/lib/python3.4/cgitb.py +320 -0
- package/python3.4.2/lib/python3.4/chunk.py +167 -0
- package/python3.4.2/lib/python3.4/cmd.py +401 -0
- package/python3.4.2/lib/python3.4/code.py +302 -0
- package/python3.4.2/lib/python3.4/codecs.py +1110 -0
- package/python3.4.2/lib/python3.4/codeop.py +168 -0
- package/python3.4.2/lib/python3.4/collections/__init__.py +1132 -0
- package/python3.4.2/lib/python3.4/collections/__main__.py +38 -0
- package/python3.4.2/lib/python3.4/collections/abc.py +2 -0
- package/python3.4.2/lib/python3.4/colorsys.py +164 -0
- package/python3.4.2/lib/python3.4/compileall.py +241 -0
- package/python3.4.2/lib/python3.4/concurrent/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/concurrent/futures/__init__.py +18 -0
- package/python3.4.2/lib/python3.4/concurrent/futures/_base.py +575 -0
- package/python3.4.2/lib/python3.4/concurrent/futures/process.py +427 -0
- package/python3.4.2/lib/python3.4/concurrent/futures/thread.py +132 -0
- package/python3.4.2/lib/python3.4/config-3.4m/Makefile +1835 -0
- package/python3.4.2/lib/python3.4/config-3.4m/Setup +466 -0
- package/python3.4.2/lib/python3.4/config-3.4m/Setup.config +13 -0
- package/python3.4.2/lib/python3.4/config-3.4m/Setup.local +1 -0
- package/python3.4.2/lib/python3.4/config-3.4m/config.c +234 -0
- package/python3.4.2/lib/python3.4/config-3.4m/config.c.in +67 -0
- package/python3.4.2/lib/python3.4/config-3.4m/install-sh +294 -0
- package/python3.4.2/lib/python3.4/config-3.4m/makesetup +293 -0
- package/python3.4.2/lib/python3.4/config-3.4m/python-config.py +68 -0
- package/python3.4.2/lib/python3.4/configparser.py +1254 -0
- package/python3.4.2/lib/python3.4/contextlib.py +340 -0
- package/python3.4.2/lib/python3.4/copy.py +333 -0
- package/python3.4.2/lib/python3.4/copyreg.py +202 -0
- package/python3.4.2/lib/python3.4/crypt.py +62 -0
- package/python3.4.2/lib/python3.4/csv.py +449 -0
- package/python3.4.2/lib/python3.4/ctypes/__init__.py +541 -0
- package/python3.4.2/lib/python3.4/ctypes/_endian.py +59 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/README.ctypes +7 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/__init__.py +9 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/dyld.py +158 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/dylib.py +63 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/fetch_macholib +2 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/fetch_macholib.bat +1 -0
- package/python3.4.2/lib/python3.4/ctypes/macholib/framework.py +65 -0
- package/python3.4.2/lib/python3.4/ctypes/test/__init__.py +14 -0
- package/python3.4.2/lib/python3.4/ctypes/test/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_anon.py +60 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_array_in_pointer.py +64 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_arrays.py +181 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_as_parameter.py +226 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_bitfields.py +263 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_buffers.py +64 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_bytes.py +65 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_byteswap.py +295 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_callbacks.py +247 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_cast.py +86 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_cfuncs.py +212 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_checkretval.py +36 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_delattr.py +21 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_errno.py +79 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_find.py +81 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_frombuffer.py +81 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_funcptr.py +127 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_functions.py +402 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_incomplete.py +42 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_init.py +40 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_internals.py +100 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_keeprefs.py +153 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_libc.py +33 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_loading.py +119 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_macholib.py +63 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_memfunctions.py +79 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_numbers.py +290 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_objects.py +67 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_parameters.py +176 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_pep3118.py +206 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_pickling.py +83 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_pointers.py +192 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_prototypes.py +219 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_python_api.py +89 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_random_things.py +74 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_refcounts.py +101 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_repr.py +29 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_returnfuncptrs.py +67 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_simplesubclasses.py +55 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_sizes.py +34 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_slicing.py +167 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_stringptr.py +77 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_strings.py +225 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_struct_fields.py +50 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_structures.py +468 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_unaligned_structures.py +45 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_unicode.py +56 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_values.py +95 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_varsize_struct.py +50 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_win32.py +119 -0
- package/python3.4.2/lib/python3.4/ctypes/test/test_wintypes.py +41 -0
- package/python3.4.2/lib/python3.4/ctypes/util.py +267 -0
- package/python3.4.2/lib/python3.4/ctypes/wintypes.py +202 -0
- package/python3.4.2/lib/python3.4/curses/__init__.py +101 -0
- package/python3.4.2/lib/python3.4/curses/ascii.py +99 -0
- package/python3.4.2/lib/python3.4/curses/has_key.py +192 -0
- package/python3.4.2/lib/python3.4/curses/panel.py +6 -0
- package/python3.4.2/lib/python3.4/curses/textpad.py +188 -0
- package/python3.4.2/lib/python3.4/datetime.py +2136 -0
- package/python3.4.2/lib/python3.4/dbm/__init__.py +188 -0
- package/python3.4.2/lib/python3.4/dbm/dumb.py +291 -0
- package/python3.4.2/lib/python3.4/dbm/gnu.py +3 -0
- package/python3.4.2/lib/python3.4/dbm/ndbm.py +3 -0
- package/python3.4.2/lib/python3.4/decimal.py +6414 -0
- package/python3.4.2/lib/python3.4/difflib.py +2039 -0
- package/python3.4.2/lib/python3.4/dis.py +475 -0
- package/python3.4.2/lib/python3.4/distutils/README +13 -0
- package/python3.4.2/lib/python3.4/distutils/__init__.py +17 -0
- package/python3.4.2/lib/python3.4/distutils/archive_util.py +245 -0
- package/python3.4.2/lib/python3.4/distutils/bcppcompiler.py +393 -0
- package/python3.4.2/lib/python3.4/distutils/ccompiler.py +1115 -0
- package/python3.4.2/lib/python3.4/distutils/cmd.py +435 -0
- package/python3.4.2/lib/python3.4/distutils/command/__init__.py +31 -0
- package/python3.4.2/lib/python3.4/distutils/command/bdist.py +142 -0
- package/python3.4.2/lib/python3.4/distutils/command/bdist_dumb.py +122 -0
- package/python3.4.2/lib/python3.4/distutils/command/bdist_msi.py +741 -0
- package/python3.4.2/lib/python3.4/distutils/command/bdist_rpm.py +582 -0
- package/python3.4.2/lib/python3.4/distutils/command/bdist_wininst.py +349 -0
- package/python3.4.2/lib/python3.4/distutils/command/build.py +148 -0
- package/python3.4.2/lib/python3.4/distutils/command/build_clib.py +209 -0
- package/python3.4.2/lib/python3.4/distutils/command/build_ext.py +735 -0
- package/python3.4.2/lib/python3.4/distutils/command/build_py.py +416 -0
- package/python3.4.2/lib/python3.4/distutils/command/build_scripts.py +160 -0
- package/python3.4.2/lib/python3.4/distutils/command/check.py +145 -0
- package/python3.4.2/lib/python3.4/distutils/command/clean.py +76 -0
- package/python3.4.2/lib/python3.4/distutils/command/command_template +33 -0
- package/python3.4.2/lib/python3.4/distutils/command/config.py +347 -0
- package/python3.4.2/lib/python3.4/distutils/command/install.py +650 -0
- package/python3.4.2/lib/python3.4/distutils/command/install_data.py +79 -0
- package/python3.4.2/lib/python3.4/distutils/command/install_egg_info.py +77 -0
- package/python3.4.2/lib/python3.4/distutils/command/install_headers.py +47 -0
- package/python3.4.2/lib/python3.4/distutils/command/install_lib.py +217 -0
- package/python3.4.2/lib/python3.4/distutils/command/install_scripts.py +60 -0
- package/python3.4.2/lib/python3.4/distutils/command/register.py +304 -0
- package/python3.4.2/lib/python3.4/distutils/command/sdist.py +467 -0
- package/python3.4.2/lib/python3.4/distutils/command/upload.py +202 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-10.0-amd64.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-10.0.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-6.0.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-7.1.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-8.0.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-9.0-amd64.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/command/wininst-9.0.exe +0 -0
- package/python3.4.2/lib/python3.4/distutils/config.py +131 -0
- package/python3.4.2/lib/python3.4/distutils/core.py +237 -0
- package/python3.4.2/lib/python3.4/distutils/cygwinccompiler.py +405 -0
- package/python3.4.2/lib/python3.4/distutils/debug.py +5 -0
- package/python3.4.2/lib/python3.4/distutils/dep_util.py +92 -0
- package/python3.4.2/lib/python3.4/distutils/dir_util.py +210 -0
- package/python3.4.2/lib/python3.4/distutils/dist.py +1238 -0
- package/python3.4.2/lib/python3.4/distutils/errors.py +97 -0
- package/python3.4.2/lib/python3.4/distutils/extension.py +233 -0
- package/python3.4.2/lib/python3.4/distutils/fancy_getopt.py +457 -0
- package/python3.4.2/lib/python3.4/distutils/file_util.py +230 -0
- package/python3.4.2/lib/python3.4/distutils/filelist.py +328 -0
- package/python3.4.2/lib/python3.4/distutils/log.py +75 -0
- package/python3.4.2/lib/python3.4/distutils/msvc9compiler.py +788 -0
- package/python3.4.2/lib/python3.4/distutils/msvccompiler.py +640 -0
- package/python3.4.2/lib/python3.4/distutils/spawn.py +195 -0
- package/python3.4.2/lib/python3.4/distutils/sysconfig.py +562 -0
- package/python3.4.2/lib/python3.4/distutils/tests/Setup.sample +67 -0
- package/python3.4.2/lib/python3.4/distutils/tests/__init__.py +36 -0
- package/python3.4.2/lib/python3.4/distutils/tests/support.py +210 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_archive_util.py +341 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_bdist.py +50 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_dumb.py +97 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_msi.py +25 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_rpm.py +134 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_bdist_wininst.py +31 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_build.py +55 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_build_clib.py +143 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_build_ext.py +488 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_build_py.py +178 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_build_scripts.py +112 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_check.py +106 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_clean.py +51 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_cmd.py +126 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_config.py +120 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_config_cmd.py +89 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_core.py +108 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_cygwinccompiler.py +155 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_dep_util.py +81 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_dir_util.py +139 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_dist.py +454 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_extension.py +69 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_file_util.py +85 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_filelist.py +299 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_install.py +246 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_install_data.py +77 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_install_headers.py +41 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_install_lib.py +115 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_install_scripts.py +82 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_log.py +37 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_msvc9compiler.py +184 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_register.py +309 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_sdist.py +484 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_spawn.py +58 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_sysconfig.py +207 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_text_file.py +107 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_unixccompiler.py +150 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_upload.py +151 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_util.py +300 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_version.py +71 -0
- package/python3.4.2/lib/python3.4/distutils/tests/test_versionpredicate.py +13 -0
- package/python3.4.2/lib/python3.4/distutils/tests/xxmodule.c +396 -0
- package/python3.4.2/lib/python3.4/distutils/text_file.py +285 -0
- package/python3.4.2/lib/python3.4/distutils/unixccompiler.py +298 -0
- package/python3.4.2/lib/python3.4/distutils/util.py +553 -0
- package/python3.4.2/lib/python3.4/distutils/version.py +349 -0
- package/python3.4.2/lib/python3.4/distutils/versionpredicate.py +166 -0
- package/python3.4.2/lib/python3.4/doctest.py +2793 -0
- package/python3.4.2/lib/python3.4/dummy_threading.py +78 -0
- package/python3.4.2/lib/python3.4/email/__init__.py +64 -0
- package/python3.4.2/lib/python3.4/email/_encoded_words.py +221 -0
- package/python3.4.2/lib/python3.4/email/_header_value_parser.py +2947 -0
- package/python3.4.2/lib/python3.4/email/_parseaddr.py +540 -0
- package/python3.4.2/lib/python3.4/email/_policybase.py +358 -0
- package/python3.4.2/lib/python3.4/email/architecture.rst +216 -0
- package/python3.4.2/lib/python3.4/email/base64mime.py +119 -0
- package/python3.4.2/lib/python3.4/email/charset.py +409 -0
- package/python3.4.2/lib/python3.4/email/contentmanager.py +249 -0
- package/python3.4.2/lib/python3.4/email/encoders.py +69 -0
- package/python3.4.2/lib/python3.4/email/errors.py +107 -0
- package/python3.4.2/lib/python3.4/email/feedparser.py +526 -0
- package/python3.4.2/lib/python3.4/email/generator.py +507 -0
- package/python3.4.2/lib/python3.4/email/header.py +581 -0
- package/python3.4.2/lib/python3.4/email/headerregistry.py +583 -0
- package/python3.4.2/lib/python3.4/email/iterators.py +71 -0
- package/python3.4.2/lib/python3.4/email/message.py +1147 -0
- package/python3.4.2/lib/python3.4/email/mime/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/email/mime/application.py +36 -0
- package/python3.4.2/lib/python3.4/email/mime/audio.py +73 -0
- package/python3.4.2/lib/python3.4/email/mime/base.py +26 -0
- package/python3.4.2/lib/python3.4/email/mime/image.py +46 -0
- package/python3.4.2/lib/python3.4/email/mime/message.py +34 -0
- package/python3.4.2/lib/python3.4/email/mime/multipart.py +47 -0
- package/python3.4.2/lib/python3.4/email/mime/nonmultipart.py +22 -0
- package/python3.4.2/lib/python3.4/email/mime/text.py +41 -0
- package/python3.4.2/lib/python3.4/email/parser.py +132 -0
- package/python3.4.2/lib/python3.4/email/policy.py +201 -0
- package/python3.4.2/lib/python3.4/email/quoprimime.py +299 -0
- package/python3.4.2/lib/python3.4/email/utils.py +399 -0
- package/python3.4.2/lib/python3.4/encodings/__init__.py +152 -0
- package/python3.4.2/lib/python3.4/encodings/__pycache__/__init__.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/encodings/__pycache__/aliases.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/encodings/__pycache__/ascii.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/encodings/__pycache__/latin_1.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/encodings/__pycache__/utf_8.cpython-34.pyc +0 -0
- package/python3.4.2/lib/python3.4/encodings/aliases.py +544 -0
- package/python3.4.2/lib/python3.4/encodings/ascii.py +50 -0
- package/python3.4.2/lib/python3.4/encodings/base64_codec.py +55 -0
- package/python3.4.2/lib/python3.4/encodings/big5.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/big5hkscs.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/bz2_codec.py +78 -0
- package/python3.4.2/lib/python3.4/encodings/charmap.py +69 -0
- package/python3.4.2/lib/python3.4/encodings/cp037.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1006.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1026.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1125.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp1140.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1250.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1251.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1252.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1253.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1254.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1255.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1256.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1257.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp1258.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp273.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp424.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp437.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp500.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp65001.py +40 -0
- package/python3.4.2/lib/python3.4/encodings/cp720.py +309 -0
- package/python3.4.2/lib/python3.4/encodings/cp737.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp775.py +697 -0
- package/python3.4.2/lib/python3.4/encodings/cp850.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp852.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp855.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp856.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp857.py +694 -0
- package/python3.4.2/lib/python3.4/encodings/cp858.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp860.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp861.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp862.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp863.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp864.py +690 -0
- package/python3.4.2/lib/python3.4/encodings/cp865.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp866.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/cp869.py +689 -0
- package/python3.4.2/lib/python3.4/encodings/cp874.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp875.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/cp932.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/cp949.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/cp950.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/euc_jis_2004.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/euc_jisx0213.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/euc_jp.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/euc_kr.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/gb18030.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/gb2312.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/gbk.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/hex_codec.py +55 -0
- package/python3.4.2/lib/python3.4/encodings/hp_roman8.py +312 -0
- package/python3.4.2/lib/python3.4/encodings/hz.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/idna.py +309 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_jp.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_jp_1.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_jp_2.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_jp_2004.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_jp_3.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_jp_ext.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso2022_kr.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_1.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_10.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_11.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_13.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_14.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_15.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_16.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_2.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_3.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_4.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_5.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_6.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_7.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_8.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/iso8859_9.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/johab.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/koi8_r.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/koi8_u.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/latin_1.py +50 -0
- package/python3.4.2/lib/python3.4/encodings/mac_arabic.py +698 -0
- package/python3.4.2/lib/python3.4/encodings/mac_centeuro.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_croatian.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_cyrillic.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_farsi.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_greek.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_iceland.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_latin2.py +312 -0
- package/python3.4.2/lib/python3.4/encodings/mac_roman.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_romanian.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mac_turkish.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/mbcs.py +47 -0
- package/python3.4.2/lib/python3.4/encodings/palmos.py +308 -0
- package/python3.4.2/lib/python3.4/encodings/ptcp154.py +312 -0
- package/python3.4.2/lib/python3.4/encodings/punycode.py +237 -0
- package/python3.4.2/lib/python3.4/encodings/quopri_codec.py +56 -0
- package/python3.4.2/lib/python3.4/encodings/raw_unicode_escape.py +45 -0
- package/python3.4.2/lib/python3.4/encodings/rot_13.py +113 -0
- package/python3.4.2/lib/python3.4/encodings/shift_jis.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/shift_jis_2004.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/shift_jisx0213.py +39 -0
- package/python3.4.2/lib/python3.4/encodings/tis_620.py +307 -0
- package/python3.4.2/lib/python3.4/encodings/undefined.py +49 -0
- package/python3.4.2/lib/python3.4/encodings/unicode_escape.py +45 -0
- package/python3.4.2/lib/python3.4/encodings/unicode_internal.py +45 -0
- package/python3.4.2/lib/python3.4/encodings/utf_16.py +155 -0
- package/python3.4.2/lib/python3.4/encodings/utf_16_be.py +42 -0
- package/python3.4.2/lib/python3.4/encodings/utf_16_le.py +42 -0
- package/python3.4.2/lib/python3.4/encodings/utf_32.py +150 -0
- package/python3.4.2/lib/python3.4/encodings/utf_32_be.py +37 -0
- package/python3.4.2/lib/python3.4/encodings/utf_32_le.py +37 -0
- package/python3.4.2/lib/python3.4/encodings/utf_7.py +38 -0
- package/python3.4.2/lib/python3.4/encodings/utf_8.py +42 -0
- package/python3.4.2/lib/python3.4/encodings/utf_8_sig.py +130 -0
- package/python3.4.2/lib/python3.4/encodings/uu_codec.py +99 -0
- package/python3.4.2/lib/python3.4/encodings/zlib_codec.py +77 -0
- package/python3.4.2/lib/python3.4/ensurepip/__init__.py +210 -0
- package/python3.4.2/lib/python3.4/ensurepip/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/ensurepip/_bundled/pip-1.5.6-py2.py3-none-any.whl +0 -0
- package/python3.4.2/lib/python3.4/ensurepip/_bundled/setuptools-2.1-py2.py3-none-any.whl +0 -0
- package/python3.4.2/lib/python3.4/ensurepip/_uninstall.py +30 -0
- package/python3.4.2/lib/python3.4/enum.py +525 -0
- package/python3.4.2/lib/python3.4/filecmp.py +305 -0
- package/python3.4.2/lib/python3.4/fileinput.py +429 -0
- package/python3.4.2/lib/python3.4/fnmatch.py +109 -0
- package/python3.4.2/lib/python3.4/formatter.py +448 -0
- package/python3.4.2/lib/python3.4/fractions.py +630 -0
- package/python3.4.2/lib/python3.4/ftplib.py +1088 -0
- package/python3.4.2/lib/python3.4/functools.py +721 -0
- package/python3.4.2/lib/python3.4/genericpath.py +132 -0
- package/python3.4.2/lib/python3.4/getopt.py +215 -0
- package/python3.4.2/lib/python3.4/getpass.py +186 -0
- package/python3.4.2/lib/python3.4/gettext.py +523 -0
- package/python3.4.2/lib/python3.4/glob.py +110 -0
- package/python3.4.2/lib/python3.4/gzip.py +674 -0
- package/python3.4.2/lib/python3.4/hashlib.py +217 -0
- package/python3.4.2/lib/python3.4/heapq.py +476 -0
- package/python3.4.2/lib/python3.4/hmac.py +144 -0
- package/python3.4.2/lib/python3.4/html/__init__.py +132 -0
- package/python3.4.2/lib/python3.4/html/entities.py +2506 -0
- package/python3.4.2/lib/python3.4/html/parser.py +550 -0
- package/python3.4.2/lib/python3.4/http/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/http/client.py +1302 -0
- package/python3.4.2/lib/python3.4/http/cookiejar.py +2080 -0
- package/python3.4.2/lib/python3.4/http/cookies.py +578 -0
- package/python3.4.2/lib/python3.4/http/server.py +1241 -0
- package/python3.4.2/lib/python3.4/idlelib/AutoComplete.py +233 -0
- package/python3.4.2/lib/python3.4/idlelib/AutoCompleteWindow.py +415 -0
- package/python3.4.2/lib/python3.4/idlelib/AutoExpand.py +104 -0
- package/python3.4.2/lib/python3.4/idlelib/Bindings.py +94 -0
- package/python3.4.2/lib/python3.4/idlelib/CREDITS.txt +37 -0
- package/python3.4.2/lib/python3.4/idlelib/CallTipWindow.py +170 -0
- package/python3.4.2/lib/python3.4/idlelib/CallTips.py +175 -0
- package/python3.4.2/lib/python3.4/idlelib/ChangeLog +1591 -0
- package/python3.4.2/lib/python3.4/idlelib/ClassBrowser.py +229 -0
- package/python3.4.2/lib/python3.4/idlelib/CodeContext.py +176 -0
- package/python3.4.2/lib/python3.4/idlelib/ColorDelegator.py +254 -0
- package/python3.4.2/lib/python3.4/idlelib/Debugger.py +490 -0
- package/python3.4.2/lib/python3.4/idlelib/Delegator.py +25 -0
- package/python3.4.2/lib/python3.4/idlelib/EditorWindow.py +1729 -0
- package/python3.4.2/lib/python3.4/idlelib/FileList.py +129 -0
- package/python3.4.2/lib/python3.4/idlelib/FormatParagraph.py +193 -0
- package/python3.4.2/lib/python3.4/idlelib/GrepDialog.py +159 -0
- package/python3.4.2/lib/python3.4/idlelib/HISTORY.txt +296 -0
- package/python3.4.2/lib/python3.4/idlelib/HyperParser.py +313 -0
- package/python3.4.2/lib/python3.4/idlelib/IOBinding.py +555 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/folder.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle.icns +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle.ico +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle_16.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle_16.png +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle_32.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle_32.png +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle_48.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/idle_48.png +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/minusnode.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/openfolder.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/plusnode.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/python.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/Icons/tk.gif +0 -0
- package/python3.4.2/lib/python3.4/idlelib/IdleHistory.py +104 -0
- package/python3.4.2/lib/python3.4/idlelib/MultiCall.py +453 -0
- package/python3.4.2/lib/python3.4/idlelib/MultiStatusBar.py +45 -0
- package/python3.4.2/lib/python3.4/idlelib/NEWS.txt +877 -0
- package/python3.4.2/lib/python3.4/idlelib/ObjectBrowser.py +143 -0
- package/python3.4.2/lib/python3.4/idlelib/OutputWindow.py +144 -0
- package/python3.4.2/lib/python3.4/idlelib/ParenMatch.py +178 -0
- package/python3.4.2/lib/python3.4/idlelib/PathBrowser.py +106 -0
- package/python3.4.2/lib/python3.4/idlelib/Percolator.py +104 -0
- package/python3.4.2/lib/python3.4/idlelib/PyParse.py +618 -0
- package/python3.4.2/lib/python3.4/idlelib/PyShell.py +1619 -0
- package/python3.4.2/lib/python3.4/idlelib/README.txt +60 -0
- package/python3.4.2/lib/python3.4/idlelib/RemoteDebugger.py +389 -0
- package/python3.4.2/lib/python3.4/idlelib/RemoteObjectBrowser.py +36 -0
- package/python3.4.2/lib/python3.4/idlelib/ReplaceDialog.py +221 -0
- package/python3.4.2/lib/python3.4/idlelib/RstripExtension.py +33 -0
- package/python3.4.2/lib/python3.4/idlelib/ScriptBinding.py +207 -0
- package/python3.4.2/lib/python3.4/idlelib/ScrolledList.py +140 -0
- package/python3.4.2/lib/python3.4/idlelib/SearchDialog.py +89 -0
- package/python3.4.2/lib/python3.4/idlelib/SearchDialogBase.py +184 -0
- package/python3.4.2/lib/python3.4/idlelib/SearchEngine.py +233 -0
- package/python3.4.2/lib/python3.4/idlelib/StackViewer.py +152 -0
- package/python3.4.2/lib/python3.4/idlelib/TODO.txt +210 -0
- package/python3.4.2/lib/python3.4/idlelib/ToolTip.py +97 -0
- package/python3.4.2/lib/python3.4/idlelib/TreeWidget.py +465 -0
- package/python3.4.2/lib/python3.4/idlelib/UndoDelegator.py +365 -0
- package/python3.4.2/lib/python3.4/idlelib/WidgetRedirector.py +174 -0
- package/python3.4.2/lib/python3.4/idlelib/WindowList.py +90 -0
- package/python3.4.2/lib/python3.4/idlelib/ZoomHeight.py +51 -0
- package/python3.4.2/lib/python3.4/idlelib/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/idlelib/__main__.py +9 -0
- package/python3.4.2/lib/python3.4/idlelib/aboutDialog.py +145 -0
- package/python3.4.2/lib/python3.4/idlelib/config-extensions.def +96 -0
- package/python3.4.2/lib/python3.4/idlelib/config-highlight.def +64 -0
- package/python3.4.2/lib/python3.4/idlelib/config-keys.def +214 -0
- package/python3.4.2/lib/python3.4/idlelib/config-main.def +79 -0
- package/python3.4.2/lib/python3.4/idlelib/configDialog.py +1195 -0
- package/python3.4.2/lib/python3.4/idlelib/configHandler.py +722 -0
- package/python3.4.2/lib/python3.4/idlelib/configHelpSourceEdit.py +166 -0
- package/python3.4.2/lib/python3.4/idlelib/configSectionNameDialog.py +98 -0
- package/python3.4.2/lib/python3.4/idlelib/dynOptionMenuWidget.py +57 -0
- package/python3.4.2/lib/python3.4/idlelib/extend.txt +83 -0
- package/python3.4.2/lib/python3.4/idlelib/help.txt +368 -0
- package/python3.4.2/lib/python3.4/idlelib/idle.bat +4 -0
- package/python3.4.2/lib/python3.4/idlelib/idle.py +11 -0
- package/python3.4.2/lib/python3.4/idlelib/idle.pyw +21 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/README.txt +115 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/__init__.py +9 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/htest.py +369 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/mock_idle.py +55 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/mock_tk.py +298 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_autocomplete.py +143 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_autoexpand.py +141 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_calltips.py +172 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_config_name.py +75 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_configdialog.py +32 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_delegator.py +37 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_formatparagraph.py +377 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_grep.py +80 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_hyperparser.py +273 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_idlehistory.py +167 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_parenmatch.py +109 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_pathbrowser.py +12 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_rstrip.py +49 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_searchdialogbase.py +165 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_searchengine.py +329 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_text.py +228 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_textview.py +97 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_warning.py +73 -0
- package/python3.4.2/lib/python3.4/idlelib/idle_test/test_widgetredir.py +122 -0
- package/python3.4.2/lib/python3.4/idlelib/idlever.py +1 -0
- package/python3.4.2/lib/python3.4/idlelib/keybindingDialog.py +266 -0
- package/python3.4.2/lib/python3.4/idlelib/macosxSupport.py +239 -0
- package/python3.4.2/lib/python3.4/idlelib/rpc.py +624 -0
- package/python3.4.2/lib/python3.4/idlelib/run.py +404 -0
- package/python3.4.2/lib/python3.4/idlelib/tabbedpages.py +498 -0
- package/python3.4.2/lib/python3.4/idlelib/testcode.py +31 -0
- package/python3.4.2/lib/python3.4/idlelib/textView.py +86 -0
- package/python3.4.2/lib/python3.4/imaplib.py +1549 -0
- package/python3.4.2/lib/python3.4/imghdr.py +154 -0
- package/python3.4.2/lib/python3.4/imp.py +315 -0
- package/python3.4.2/lib/python3.4/importlib/__init__.py +156 -0
- package/python3.4.2/lib/python3.4/importlib/_bootstrap.py +2461 -0
- package/python3.4.2/lib/python3.4/importlib/abc.py +323 -0
- package/python3.4.2/lib/python3.4/importlib/machinery.py +21 -0
- package/python3.4.2/lib/python3.4/importlib/util.py +202 -0
- package/python3.4.2/lib/python3.4/inspect.py +2759 -0
- package/python3.4.2/lib/python3.4/io.py +92 -0
- package/python3.4.2/lib/python3.4/ipaddress.py +2183 -0
- package/python3.4.2/lib/python3.4/json/__init__.py +331 -0
- package/python3.4.2/lib/python3.4/json/decoder.py +362 -0
- package/python3.4.2/lib/python3.4/json/encoder.py +433 -0
- package/python3.4.2/lib/python3.4/json/scanner.py +73 -0
- package/python3.4.2/lib/python3.4/json/tool.py +39 -0
- package/python3.4.2/lib/python3.4/keyword.py +94 -0
- package/python3.4.2/lib/python3.4/lib2to3/Grammar.txt +159 -0
- package/python3.4.2/lib/python3.4/lib2to3/Grammar3.4.2.final.0.pickle +0 -0
- package/python3.4.2/lib/python3.4/lib2to3/PatternGrammar.txt +28 -0
- package/python3.4.2/lib/python3.4/lib2to3/PatternGrammar3.4.2.final.0.pickle +0 -0
- package/python3.4.2/lib/python3.4/lib2to3/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/lib2to3/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/lib2to3/btm_matcher.py +168 -0
- package/python3.4.2/lib/python3.4/lib2to3/btm_utils.py +281 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixer_base.py +187 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixer_util.py +455 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_apply.py +59 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_asserts.py +34 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_basestring.py +14 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_buffer.py +22 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_callable.py +37 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_dict.py +107 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_except.py +93 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_exec.py +40 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_execfile.py +52 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_exitfunc.py +72 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_filter.py +76 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_funcattrs.py +21 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_future.py +22 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_getcwdu.py +19 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_has_key.py +110 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_idioms.py +152 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_import.py +99 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_imports.py +145 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_imports2.py +16 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_input.py +26 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_intern.py +31 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_isinstance.py +52 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_itertools.py +43 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_itertools_imports.py +57 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_long.py +19 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_map.py +91 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_metaclass.py +228 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_methodattrs.py +24 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_ne.py +23 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_next.py +103 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_nonzero.py +21 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_numliterals.py +28 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_operator.py +98 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_paren.py +44 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_print.py +87 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_raise.py +90 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_raw_input.py +17 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_reduce.py +35 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_reload.py +28 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_renames.py +70 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_repr.py +23 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_set_literal.py +53 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_standarderror.py +18 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_sys_exc.py +30 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_throw.py +56 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_tuple_params.py +175 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_types.py +62 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_unicode.py +42 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_urllib.py +197 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_ws_comma.py +39 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_xrange.py +73 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_xreadlines.py +25 -0
- package/python3.4.2/lib/python3.4/lib2to3/fixes/fix_zip.py +35 -0
- package/python3.4.2/lib/python3.4/lib2to3/main.py +268 -0
- package/python3.4.2/lib/python3.4/lib2to3/patcomp.py +205 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/__init__.py +4 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/conv.py +257 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/driver.py +157 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/grammar.py +183 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/literals.py +60 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/parse.py +201 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/pgen.py +386 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/token.py +83 -0
- package/python3.4.2/lib/python3.4/lib2to3/pgen2/tokenize.py +502 -0
- package/python3.4.2/lib/python3.4/lib2to3/pygram.py +40 -0
- package/python3.4.2/lib/python3.4/lib2to3/pytree.py +864 -0
- package/python3.4.2/lib/python3.4/lib2to3/refactor.py +747 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/__init__.py +24 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/README +6 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/bom.py +2 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/crlf.py +3 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/different_encoding.py +6 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/false_encoding.py +2 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/bad_order.py +5 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_explicit.py +6 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_first.py +6 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_last.py +7 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_parrot.py +13 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/myfixes/fix_preorder.py +6 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/no_fixer_cls.py +1 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/fixers/parrot_example.py +2 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/infinite_recursion.py +2669 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/py2_test_grammar.py +974 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/data/py3_test_grammar.py +923 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/pytree_idempotency.py +92 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/support.py +54 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_all_fixers.py +23 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_fixers.py +4687 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_main.py +139 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_parser.py +249 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_pytree.py +477 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_refactor.py +321 -0
- package/python3.4.2/lib/python3.4/lib2to3/tests/test_util.py +594 -0
- package/python3.4.2/lib/python3.4/linecache.py +134 -0
- package/python3.4.2/lib/python3.4/locale.py +1559 -0
- package/python3.4.2/lib/python3.4/logging/__init__.py +1950 -0
- package/python3.4.2/lib/python3.4/logging/config.py +927 -0
- package/python3.4.2/lib/python3.4/logging/handlers.py +1452 -0
- package/python3.4.2/lib/python3.4/lzma.py +511 -0
- package/python3.4.2/lib/python3.4/macpath.py +205 -0
- package/python3.4.2/lib/python3.4/macurl2path.py +77 -0
- package/python3.4.2/lib/python3.4/mailbox.py +2136 -0
- package/python3.4.2/lib/python3.4/mailcap.py +253 -0
- package/python3.4.2/lib/python3.4/mimetypes.py +592 -0
- package/python3.4.2/lib/python3.4/modulefinder.py +642 -0
- package/python3.4.2/lib/python3.4/multiprocessing/__init__.py +38 -0
- package/python3.4.2/lib/python3.4/multiprocessing/connection.py +954 -0
- package/python3.4.2/lib/python3.4/multiprocessing/context.py +348 -0
- package/python3.4.2/lib/python3.4/multiprocessing/dummy/__init__.py +119 -0
- package/python3.4.2/lib/python3.4/multiprocessing/dummy/connection.py +74 -0
- package/python3.4.2/lib/python3.4/multiprocessing/forkserver.py +267 -0
- package/python3.4.2/lib/python3.4/multiprocessing/heap.py +249 -0
- package/python3.4.2/lib/python3.4/multiprocessing/managers.py +1131 -0
- package/python3.4.2/lib/python3.4/multiprocessing/pool.py +769 -0
- package/python3.4.2/lib/python3.4/multiprocessing/popen_fork.py +83 -0
- package/python3.4.2/lib/python3.4/multiprocessing/popen_forkserver.py +69 -0
- package/python3.4.2/lib/python3.4/multiprocessing/popen_spawn_posix.py +69 -0
- package/python3.4.2/lib/python3.4/multiprocessing/popen_spawn_win32.py +99 -0
- package/python3.4.2/lib/python3.4/multiprocessing/process.py +332 -0
- package/python3.4.2/lib/python3.4/multiprocessing/queues.py +367 -0
- package/python3.4.2/lib/python3.4/multiprocessing/reduction.py +240 -0
- package/python3.4.2/lib/python3.4/multiprocessing/resource_sharer.py +158 -0
- package/python3.4.2/lib/python3.4/multiprocessing/semaphore_tracker.py +143 -0
- package/python3.4.2/lib/python3.4/multiprocessing/sharedctypes.py +245 -0
- package/python3.4.2/lib/python3.4/multiprocessing/spawn.py +287 -0
- package/python3.4.2/lib/python3.4/multiprocessing/synchronize.py +418 -0
- package/python3.4.2/lib/python3.4/multiprocessing/util.py +367 -0
- package/python3.4.2/lib/python3.4/netrc.py +142 -0
- package/python3.4.2/lib/python3.4/nntplib.py +1134 -0
- package/python3.4.2/lib/python3.4/ntpath.py +625 -0
- package/python3.4.2/lib/python3.4/nturl2path.py +66 -0
- package/python3.4.2/lib/python3.4/numbers.py +394 -0
- package/python3.4.2/lib/python3.4/opcode.py +200 -0
- package/python3.4.2/lib/python3.4/operator.py +411 -0
- package/python3.4.2/lib/python3.4/optparse.py +1680 -0
- package/python3.4.2/lib/python3.4/os.py +980 -0
- package/python3.4.2/lib/python3.4/pathlib.py +1291 -0
- package/python3.4.2/lib/python3.4/pdb.py +1685 -0
- package/python3.4.2/lib/python3.4/pickle.py +1599 -0
- package/python3.4.2/lib/python3.4/pickletools.py +2818 -0
- package/python3.4.2/lib/python3.4/pipes.py +247 -0
- package/python3.4.2/lib/python3.4/pkgutil.py +629 -0
- package/python3.4.2/lib/python3.4/plat-linux/CDROM.py +207 -0
- package/python3.4.2/lib/python3.4/plat-linux/DLFCN.py +83 -0
- package/python3.4.2/lib/python3.4/plat-linux/IN.py +615 -0
- package/python3.4.2/lib/python3.4/plat-linux/TYPES.py +170 -0
- package/python3.4.2/lib/python3.4/plat-linux/regen +8 -0
- package/python3.4.2/lib/python3.4/platform.py +1476 -0
- package/python3.4.2/lib/python3.4/plistlib.py +1025 -0
- package/python3.4.2/lib/python3.4/poplib.py +461 -0
- package/python3.4.2/lib/python3.4/posixpath.py +457 -0
- package/python3.4.2/lib/python3.4/pprint.py +416 -0
- package/python3.4.2/lib/python3.4/profile.py +589 -0
- package/python3.4.2/lib/python3.4/pstats.py +691 -0
- package/python3.4.2/lib/python3.4/pty.py +170 -0
- package/python3.4.2/lib/python3.4/py_compile.py +185 -0
- package/python3.4.2/lib/python3.4/pyclbr.py +351 -0
- package/python3.4.2/lib/python3.4/pydoc.py +2622 -0
- package/python3.4.2/lib/python3.4/pydoc_data/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/pydoc_data/_pydoc.css +6 -0
- package/python3.4.2/lib/python3.4/pydoc_data/topics.py +79 -0
- package/python3.4.2/lib/python3.4/queue.py +249 -0
- package/python3.4.2/lib/python3.4/quopri.py +242 -0
- package/python3.4.2/lib/python3.4/random.py +742 -0
- package/python3.4.2/lib/python3.4/re.py +368 -0
- package/python3.4.2/lib/python3.4/reprlib.py +157 -0
- package/python3.4.2/lib/python3.4/rlcompleter.py +165 -0
- package/python3.4.2/lib/python3.4/runpy.py +271 -0
- package/python3.4.2/lib/python3.4/sched.py +167 -0
- package/python3.4.2/lib/python3.4/selectors.py +525 -0
- package/python3.4.2/lib/python3.4/shelve.py +239 -0
- package/python3.4.2/lib/python3.4/shlex.py +304 -0
- package/python3.4.2/lib/python3.4/shutil.py +1127 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/PKG-INFO +55 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/SOURCES.txt +126 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/dependency_links.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/entry_points.txt +4 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/not-zip-safe +1 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/requires.txt +4 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/EGG-INFO/top_level.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/__init__.py +69 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/_compat.py +150 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/_stringdefs.py +132 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/bccache.py +344 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/compiler.py +1640 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/constants.py +32 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/debug.py +337 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/defaults.py +43 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/environment.py +1191 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/exceptions.py +146 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/ext.py +636 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/filters.py +987 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/lexer.py +733 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/loaders.py +471 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/meta.py +103 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/nodes.py +914 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/optimizer.py +68 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/parser.py +895 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/runtime.py +581 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/sandbox.py +368 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/tests.py +149 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/__init__.py +156 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/api.py +261 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/bytecode_cache.py +37 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/core_tags.py +305 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/debug.py +58 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/doctests.py +29 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/ext.py +459 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/filters.py +515 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/imports.py +141 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/inheritance.py +250 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/lexnparse.py +593 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/loader.py +226 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/regression.py +279 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/broken.html +3 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/foo/test.html +1 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/syntaxerror.html +4 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/res/templates/test.html +1 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/security.py +166 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/tests.py +93 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/testsuite/utils.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/utils.py +520 -0
- package/python3.4.2/lib/python3.4/site-packages/Jinja2-2.7.3-py3.4.egg/jinja2/visitor.py +87 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/PKG-INFO +119 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/SOURCES.txt +17 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/dependency_links.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/not-zip-safe +1 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/EGG-INFO/top_level.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/__init__.py +298 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_compat.py +26 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_constants.py +267 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_native.py +46 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/_speedups.c +239 -0
- package/python3.4.2/lib/python3.4/site-packages/MarkupSafe-0.23-py3.4.egg/markupsafe/tests.py +179 -0
- package/python3.4.2/lib/python3.4/site-packages/README +2 -0
- package/python3.4.2/lib/python3.4/site-packages/_markerlib/__init__.py +16 -0
- package/python3.4.2/lib/python3.4/site-packages/_markerlib/markers.py +119 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/PKG-INFO +68 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/SOURCES.txt +23 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/dependency_links.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/entry_points.txt +3 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/not-zip-safe +1 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/requires.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/scripts/android-debian-builder +6 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/EGG-INFO/top_level.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/__main__.py +26 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/build.py +63 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/config.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/deb.sh +106 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/default-config +42 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/first-time-setup.sh +94 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/data/init.sh +27 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/examples/jessie-armhf.cfg +26 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/run_tests.py +38 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/script.py +110 -0
- package/python3.4.2/lib/python3.4/site-packages/android_debian_builder-1.0-py3.4.egg/android_debian_builder/util.py +177 -0
- package/python3.4.2/lib/python3.4/site-packages/easy-install.pth +4 -0
- package/python3.4.2/lib/python3.4/site-packages/easy_install.py +5 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/__init__.py +277 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/__main__.py +7 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/__init__.py +8 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/__init__.py +16 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/markers.py +119 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/__init__.py +7 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansi.py +50 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansitowin32.py +190 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/initialise.py +56 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/win32.py +137 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/winterm.py +120 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/__init__.py +23 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/__init__.py +6 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/misc.py +41 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/shutil.py +761 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.cfg +84 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.py +788 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/tarfile.py +2607 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/compat.py +1064 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/database.py +1301 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/index.py +488 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/locators.py +1194 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/manifest.py +364 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/markers.py +190 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/metadata.py +1026 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/resources.py +317 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/scripts.py +323 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t64.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/util.py +1575 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/version.py +721 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w64.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/wheel.py +958 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/__init__.py +23 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/constants.py +3104 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/_base.py +12 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +20 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +65 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/lint.py +93 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +205 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +12 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/whitespace.py +38 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/html5parser.py +2713 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/ihatexml.py +285 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/inputstream.py +881 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/sanitizer.py +271 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/__init__.py +16 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/htmlserializer.py +320 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/tokenizer.py +1731 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +44 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +76 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/_base.py +377 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +227 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +337 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +369 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +57 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/_base.py +200 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +46 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +138 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/genshistream.py +69 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/lxmletree.py +208 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/pulldom.py +63 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/__init__.py +12 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/_base.py +37 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/datrie.py +44 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/trie/py.py +67 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/utils.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pkg_resources.py +2762 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/re-vendor.py +34 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/__init__.py +77 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/adapters.py +388 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/api.py +120 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/auth.py +193 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/cacert.pem +5026 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/certs.py +24 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/compat.py +115 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/cookies.py +454 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/exceptions.py +75 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/hooks.py +45 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/models.py +803 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/__init__.py +3 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/__init__.py +32 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/big5freq.py +925 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/big5prober.py +42 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/chardetect.py +46 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/chardistribution.py +231 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetgroupprober.py +106 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetprober.py +62 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/codingstatemachine.py +61 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/compat.py +34 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/constants.py +39 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/cp949prober.py +44 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escprober.py +86 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escsm.py +242 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/eucjpprober.py +90 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euckrfreq.py +596 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euckrprober.py +42 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euctwfreq.py +428 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euctwprober.py +41 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/gb2312freq.py +472 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/gb2312prober.py +41 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/hebrewprober.py +283 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/jisfreq.py +569 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/jpcntx.py +219 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langbulgarianmodel.py +229 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langcyrillicmodel.py +329 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langgreekmodel.py +225 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langhebrewmodel.py +201 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langhungarianmodel.py +225 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/langthaimodel.py +200 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/latin1prober.py +139 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcharsetprober.py +86 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcsgroupprober.py +54 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcssm.py +575 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sbcharsetprober.py +120 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sbcsgroupprober.py +69 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sjisprober.py +91 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/universaldetector.py +170 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/utf8prober.py +76 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py +58 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/_collections.py +205 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connection.py +204 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py +710 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/ntlmpool.py +120 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py +422 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/exceptions.py +126 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/fields.py +177 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/filepost.py +100 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/__init__.py +4 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/ordered_dict.py +260 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/six.py +385 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py +13 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py +105 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/poolmanager.py +258 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/request.py +141 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/response.py +308 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py +27 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.py +45 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/request.py +68 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py +13 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py +133 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/timeout.py +234 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/url.py +162 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py +637 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/status_codes.py +88 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/structures.py +127 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/utils.py +673 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/six.py +646 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/backwardcompat/__init__.py +138 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/basecommand.py +201 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/baseparser.py +224 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/cmdoptions.py +371 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/__init__.py +88 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/bundle.py +42 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/completion.py +59 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/freeze.py +114 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/help.py +33 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/install.py +314 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/list.py +162 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/search.py +132 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/show.py +80 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/uninstall.py +59 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/unzip.py +7 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/wheel.py +195 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/zip.py +351 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/download.py +644 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/exceptions.py +46 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/index.py +990 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/locations.py +172 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/log.py +276 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/pep425tags.py +102 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/req.py +1931 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/runner.py +18 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/status_codes.py +6 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/util.py +720 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/__init__.py +251 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/bazaar.py +131 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/git.py +194 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/mercurial.py +151 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/subversion.py +273 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/wheel.py +560 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/DESCRIPTION.rst +71 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/METADATA +98 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/RECORD +373 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/WHEEL +6 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/entry_points.txt +5 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/metadata.json +1 -0
- package/python3.4.2/lib/python3.4/site-packages/pip-1.5.6.dist-info/top_level.txt +1 -0
- package/python3.4.2/lib/python3.4/site-packages/pkg_resources.py +2719 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/__init__.py +98 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/archive_util.py +210 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/cli-32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/cli-64.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/cli-arm-32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/cli.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/__init__.py +17 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/alias.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/bdist_egg.py +553 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/bdist_rpm.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/bdist_wininst.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/build_ext.py +298 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/build_py.py +221 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/develop.py +167 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/easy_install.py +1915 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/egg_info.py +392 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install.py +103 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install_egg_info.py +125 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install_lib.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/install_scripts.py +54 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/launcher manifest.xml +15 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/register.py +10 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/rotate.py +83 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/saveopts.py +24 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/sdist.py +238 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/setopt.py +164 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/test.py +198 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/command/upload_docs.py +193 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/compat.py +83 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/depends.py +246 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/dist.py +796 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/extension.py +46 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/gui-32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/gui-64.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/gui-arm-32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/gui.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/lib2to3_ex.py +58 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/package_index.py +1057 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/py26compat.py +19 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/py27compat.py +15 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/py31compat.py +11 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/sandbox.py +322 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/script template (dev).py +11 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/script template.py +4 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/site-patch.py +83 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/ssl_support.py +234 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/svn_utils.py +564 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/__init__.py +352 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/doctest.py +2683 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/environment.py +165 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/py26compat.py +14 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/script-with-bom.py +3 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/server.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_bdist_egg.py +69 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_build_ext.py +20 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_develop.py +122 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_dist_info.py +83 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_easy_install.py +394 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_egg_info.py +173 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_markerlib.py +68 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_packageindex.py +203 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_resources.py +620 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_sandbox.py +79 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_sdist.py +535 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_svn.py +246 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_test.py +124 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/tests/test_upload_docs.py +72 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools/version.py +1 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/DESCRIPTION.rst +1742 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/METADATA +1772 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/RECORD +149 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/WHEEL +6 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/dependency_links.txt +2 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/entry_points.txt +62 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/entry_points.txt.orig +62 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/pydist.json +1 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/requires.txt.orig +7 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/top_level.txt +4 -0
- package/python3.4.2/lib/python3.4/site-packages/setuptools-2.1.dist-info/zip-safe +1 -0
- package/python3.4.2/lib/python3.4/site.py +616 -0
- package/python3.4.2/lib/python3.4/smtpd.py +861 -0
- package/python3.4.2/lib/python3.4/smtplib.py +999 -0
- package/python3.4.2/lib/python3.4/sndhdr.py +240 -0
- package/python3.4.2/lib/python3.4/socket.py +535 -0
- package/python3.4.2/lib/python3.4/socketserver.py +748 -0
- package/python3.4.2/lib/python3.4/sqlite3/__init__.py +23 -0
- package/python3.4.2/lib/python3.4/sqlite3/dbapi2.py +89 -0
- package/python3.4.2/lib/python3.4/sqlite3/dump.py +70 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/dbapi.py +911 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/dump.py +81 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/factory.py +253 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/hooks.py +258 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/regression.py +358 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/transactions.py +204 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/types.py +403 -0
- package/python3.4.2/lib/python3.4/sqlite3/test/userfunctions.py +468 -0
- package/python3.4.2/lib/python3.4/sre_compile.py +489 -0
- package/python3.4.2/lib/python3.4/sre_constants.py +261 -0
- package/python3.4.2/lib/python3.4/sre_parse.py +859 -0
- package/python3.4.2/lib/python3.4/ssl.py +945 -0
- package/python3.4.2/lib/python3.4/stat.py +155 -0
- package/python3.4.2/lib/python3.4/statistics.py +595 -0
- package/python3.4.2/lib/python3.4/string.py +282 -0
- package/python3.4.2/lib/python3.4/stringprep.py +272 -0
- package/python3.4.2/lib/python3.4/struct.py +15 -0
- package/python3.4.2/lib/python3.4/subprocess.py +1690 -0
- package/python3.4.2/lib/python3.4/sunau.py +525 -0
- package/python3.4.2/lib/python3.4/symbol.py +111 -0
- package/python3.4.2/lib/python3.4/symtable.py +240 -0
- package/python3.4.2/lib/python3.4/sysconfig.py +709 -0
- package/python3.4.2/lib/python3.4/tabnanny.py +332 -0
- package/python3.4.2/lib/python3.4/tarfile.py +2519 -0
- package/python3.4.2/lib/python3.4/telnetlib.py +672 -0
- package/python3.4.2/lib/python3.4/tempfile.py +698 -0
- package/python3.4.2/lib/python3.4/test/185test.db +0 -0
- package/python3.4.2/lib/python3.4/test/Sine-1000Hz-300ms.aif +0 -0
- package/python3.4.2/lib/python3.4/test/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/test/__main__.py +3 -0
- package/python3.4.2/lib/python3.4/test/_test_multiprocessing.py +3841 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-alaw.aifc +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm16.aiff +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm16.au +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm16.wav +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm24.aiff +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm24.au +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm24.wav +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm32.aiff +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm32.au +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm32.wav +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm8.aiff +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm8.au +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-pcm8.wav +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-ulaw.aifc +0 -0
- package/python3.4.2/lib/python3.4/test/audiodata/pluck-ulaw.au +0 -0
- package/python3.4.2/lib/python3.4/test/audiotest.au +0 -0
- package/python3.4.2/lib/python3.4/test/audiotests.py +329 -0
- package/python3.4.2/lib/python3.4/test/autotest.py +6 -0
- package/python3.4.2/lib/python3.4/test/bad_coding.py +1 -0
- package/python3.4.2/lib/python3.4/test/bad_coding2.py +2 -0
- package/python3.4.2/lib/python3.4/test/badcert.pem +36 -0
- package/python3.4.2/lib/python3.4/test/badkey.pem +40 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_3131.py +2 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future10.py +3 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future3.py +10 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future4.py +10 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future5.py +12 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future6.py +10 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future7.py +11 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future8.py +10 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_future9.py +10 -0
- package/python3.4.2/lib/python3.4/test/badsyntax_pep3120.py +1 -0
- package/python3.4.2/lib/python3.4/test/buffer_tests.py +218 -0
- package/python3.4.2/lib/python3.4/test/bytecode_helper.py +41 -0
- package/python3.4.2/lib/python3.4/test/capath/4e1295a3.0 +14 -0
- package/python3.4.2/lib/python3.4/test/capath/5ed36f99.0 +41 -0
- package/python3.4.2/lib/python3.4/test/capath/6e88d7b8.0 +14 -0
- package/python3.4.2/lib/python3.4/test/capath/99d0fa06.0 +41 -0
- package/python3.4.2/lib/python3.4/test/cfgparser.1 +2 -0
- package/python3.4.2/lib/python3.4/test/cfgparser.2 +537 -0
- package/python3.4.2/lib/python3.4/test/cfgparser.3 +69 -0
- package/python3.4.2/lib/python3.4/test/check_soundcard.vbs +13 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/big5-utf8.txt +9 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/big5.txt +9 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/big5hkscs-utf8.txt +2 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/big5hkscs.txt +2 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/cp949-utf8.txt +9 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/cp949.txt +9 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jisx0213-utf8.txt +8 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jisx0213.txt +8 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jp-utf8.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/euc_jp.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/euc_kr-utf8.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/euc_kr.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/gb18030-utf8.txt +15 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/gb18030.txt +15 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/gb2312-utf8.txt +6 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/gb2312.txt +6 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/gbk-utf8.txt +14 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/gbk.txt +14 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/hz-utf8.txt +2 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/hz.txt +2 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_jp-utf8.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_jp.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_kr-utf8.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/iso2022_kr.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/johab-utf8.txt +9 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/johab.txt +9 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jis-utf8.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jis.txt +7 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jisx0213-utf8.txt +8 -0
- package/python3.4.2/lib/python3.4/test/cjkencodings/shift_jisx0213.txt +8 -0
- package/python3.4.2/lib/python3.4/test/cmath_testcases.txt +2370 -0
- package/python3.4.2/lib/python3.4/test/coding20731.py +4 -0
- package/python3.4.2/lib/python3.4/test/curses_tests.py +46 -0
- package/python3.4.2/lib/python3.4/test/data/README +2 -0
- package/python3.4.2/lib/python3.4/test/datetimetester.py +3786 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/abs.decTest +161 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/add.decTest +2716 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/and.decTest +338 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/base.decTest +1411 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/clamp.decTest +211 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/class.decTest +131 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/compare.decTest +758 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/comparetotal.decTest +798 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/comparetotmag.decTest +790 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/copy.decTest +86 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/copyabs.decTest +86 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/copynegate.decTest +86 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/copysign.decTest +177 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddAbs.decTest +126 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddAdd.decTest +1328 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddAnd.decTest +347 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddBase.decTest +1104 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCanonical.decTest +357 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddClass.decTest +76 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompare.decTest +744 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompareSig.decTest +647 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompareTotal.decTest +706 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCompareTotalMag.decTest +706 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopy.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopyAbs.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopyNegate.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddCopySign.decTest +175 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddDivide.decTest +863 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddDivideInt.decTest +449 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddEncode.decTest +495 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddFMA.decTest +1698 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddInvert.decTest +202 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddLogB.decTest +159 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMax.decTest +322 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMaxMag.decTest +304 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMin.decTest +309 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMinMag.decTest +293 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMinus.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddMultiply.decTest +553 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddNextMinus.decTest +126 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddNextPlus.decTest +124 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddNextToward.decTest +374 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddOr.decTest +292 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddPlus.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddQuantize.decTest +833 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddReduce.decTest +182 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddRemainder.decTest +600 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddRemainderNear.decTest +629 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddRotate.decTest +262 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddSameQuantum.decTest +389 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddScaleB.decTest +243 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddShift.decTest +262 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddSubtract.decTest +629 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddToIntegral.decTest +257 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ddXor.decTest +337 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/decDouble.decTest +65 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/decQuad.decTest +65 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/decSingle.decTest +25 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/divide.decTest +854 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/divideint.decTest +486 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqAbs.decTest +126 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqAdd.decTest +1215 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqAnd.decTest +420 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqBase.decTest +1081 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCanonical.decTest +372 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqClass.decTest +77 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompare.decTest +753 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompareSig.decTest +647 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompareTotal.decTest +706 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCompareTotalMag.decTest +706 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopy.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopyAbs.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopyNegate.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqCopySign.decTest +175 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqDivide.decTest +808 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqDivideInt.decTest +453 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqEncode.decTest +477 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqFMA.decTest +1786 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqInvert.decTest +245 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqLogB.decTest +160 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMax.decTest +322 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMaxMag.decTest +304 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMin.decTest +309 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMinMag.decTest +293 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMinus.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqMultiply.decTest +589 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqNextMinus.decTest +126 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqNextPlus.decTest +124 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqNextToward.decTest +375 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqOr.decTest +401 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqPlus.decTest +88 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqQuantize.decTest +836 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqReduce.decTest +183 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqRemainder.decTest +597 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqRemainderNear.decTest +631 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqRotate.decTest +298 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqSameQuantum.decTest +389 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqScaleB.decTest +260 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqShift.decTest +298 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqSubtract.decTest +635 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqToIntegral.decTest +257 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dqXor.decTest +410 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dsBase.decTest +1062 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/dsEncode.decTest +372 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/exp.decTest +674 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/extra.decTest +2830 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/fma.decTest +3426 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/inexact.decTest +215 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/invert.decTest +176 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/ln.decTest +611 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/log10.decTest +551 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/logb.decTest +188 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/max.decTest +424 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/maxmag.decTest +404 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/min.decTest +407 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/minmag.decTest +390 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/minus.decTest +182 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/multiply.decTest +731 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/nextminus.decTest +148 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/nextplus.decTest +150 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/nexttoward.decTest +426 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/or.decTest +334 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/plus.decTest +195 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/power.decTest +1624 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/powersqrt.decTest +2970 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/quantize.decTest +948 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/randomBound32.decTest +2443 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/randoms.decTest +4030 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/reduce.decTest +234 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/remainder.decTest +640 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/remainderNear.decTest +572 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/rescale.decTest +764 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/rotate.decTest +247 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/rounding.decTest +1303 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/samequantum.decTest +389 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/scaleb.decTest +209 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/shift.decTest +250 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/squareroot.decTest +3834 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/subtract.decTest +873 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/testall.decTest +87 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/tointegral.decTest +241 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/tointegralx.decTest +255 -0
- package/python3.4.2/lib/python3.4/test/decimaltestdata/xor.decTest +335 -0
- package/python3.4.2/lib/python3.4/test/dh512.pem +9 -0
- package/python3.4.2/lib/python3.4/test/dis_module.py +5 -0
- package/python3.4.2/lib/python3.4/test/doctest_aliases.py +13 -0
- package/python3.4.2/lib/python3.4/test/double_const.py +30 -0
- package/python3.4.2/lib/python3.4/test/empty.vbs +1 -0
- package/python3.4.2/lib/python3.4/test/encoded_modules/__init__.py +23 -0
- package/python3.4.2/lib/python3.4/test/encoded_modules/module_iso_8859_1.py +5 -0
- package/python3.4.2/lib/python3.4/test/encoded_modules/module_koi8_r.py +3 -0
- package/python3.4.2/lib/python3.4/test/exception_hierarchy.txt +61 -0
- package/python3.4.2/lib/python3.4/test/final_a.py +19 -0
- package/python3.4.2/lib/python3.4/test/final_b.py +19 -0
- package/python3.4.2/lib/python3.4/test/floating_points.txt +1028 -0
- package/python3.4.2/lib/python3.4/test/fork_wait.py +77 -0
- package/python3.4.2/lib/python3.4/test/formatfloat_testcases.txt +355 -0
- package/python3.4.2/lib/python3.4/test/future_test1.py +11 -0
- package/python3.4.2/lib/python3.4/test/future_test2.py +10 -0
- package/python3.4.2/lib/python3.4/test/gdb_sample.py +12 -0
- package/python3.4.2/lib/python3.4/test/https_svn_python_org_root.pem +41 -0
- package/python3.4.2/lib/python3.4/test/ieee754.txt +185 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.bmp +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.gif +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.jpg +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.pbm +3 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.pgm +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.png +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.ppm +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.ras +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.sgi +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.tiff +0 -0
- package/python3.4.2/lib/python3.4/test/imghdrdata/python.xbm +6 -0
- package/python3.4.2/lib/python3.4/test/inspect_fodder.py +58 -0
- package/python3.4.2/lib/python3.4/test/inspect_fodder2.py +111 -0
- package/python3.4.2/lib/python3.4/test/keycert.passwd.pem +33 -0
- package/python3.4.2/lib/python3.4/test/keycert.pem +31 -0
- package/python3.4.2/lib/python3.4/test/keycert2.pem +31 -0
- package/python3.4.2/lib/python3.4/test/keycert3.pem +73 -0
- package/python3.4.2/lib/python3.4/test/keycert4.pem +73 -0
- package/python3.4.2/lib/python3.4/test/list_tests.py +585 -0
- package/python3.4.2/lib/python3.4/test/lock_tests.py +896 -0
- package/python3.4.2/lib/python3.4/test/mailcap.txt +39 -0
- package/python3.4.2/lib/python3.4/test/make_ssl_certs.py +176 -0
- package/python3.4.2/lib/python3.4/test/mapping_tests.py +657 -0
- package/python3.4.2/lib/python3.4/test/math_testcases.txt +633 -0
- package/python3.4.2/lib/python3.4/test/memory_watchdog.py +28 -0
- package/python3.4.2/lib/python3.4/test/mime.types +1445 -0
- package/python3.4.2/lib/python3.4/test/mock_socket.py +156 -0
- package/python3.4.2/lib/python3.4/test/mp_fork_bomb.py +18 -0
- package/python3.4.2/lib/python3.4/test/multibytecodec_support.py +377 -0
- package/python3.4.2/lib/python3.4/test/nokia.pem +31 -0
- package/python3.4.2/lib/python3.4/test/nullbytecert.pem +90 -0
- package/python3.4.2/lib/python3.4/test/nullcert.pem +0 -0
- package/python3.4.2/lib/python3.4/test/outstanding_bugs.py +18 -0
- package/python3.4.2/lib/python3.4/test/pickletester.py +2253 -0
- package/python3.4.2/lib/python3.4/test/profilee.py +115 -0
- package/python3.4.2/lib/python3.4/test/pstats.pck +0 -0
- package/python3.4.2/lib/python3.4/test/pycacert.pem +78 -0
- package/python3.4.2/lib/python3.4/test/pycakey.pem +28 -0
- package/python3.4.2/lib/python3.4/test/pyclbr_input.py +33 -0
- package/python3.4.2/lib/python3.4/test/pydoc_mod.py +37 -0
- package/python3.4.2/lib/python3.4/test/pydocfodder.py +216 -0
- package/python3.4.2/lib/python3.4/test/pystone.py +277 -0
- package/python3.4.2/lib/python3.4/test/randv2_32.pck +633 -0
- package/python3.4.2/lib/python3.4/test/randv2_64.pck +633 -0
- package/python3.4.2/lib/python3.4/test/randv3.pck +633 -0
- package/python3.4.2/lib/python3.4/test/re_tests.py +670 -0
- package/python3.4.2/lib/python3.4/test/regrtest.py +1589 -0
- package/python3.4.2/lib/python3.4/test/relimport.py +1 -0
- package/python3.4.2/lib/python3.4/test/reperf.py +23 -0
- package/python3.4.2/lib/python3.4/test/revocation.crl +11 -0
- package/python3.4.2/lib/python3.4/test/sample_doctest.py +76 -0
- package/python3.4.2/lib/python3.4/test/sample_doctest_no_docstrings.py +12 -0
- package/python3.4.2/lib/python3.4/test/sample_doctest_no_doctests.py +15 -0
- package/python3.4.2/lib/python3.4/test/script_helper.py +178 -0
- package/python3.4.2/lib/python3.4/test/seq_tests.py +397 -0
- package/python3.4.2/lib/python3.4/test/sgml_input.html +212 -0
- package/python3.4.2/lib/python3.4/test/sha256.pem +128 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/README +12 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.8svx +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.aifc +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.aiff +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.au +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.hcom +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.sndt +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.voc +0 -0
- package/python3.4.2/lib/python3.4/test/sndhdrdata/sndhdr.wav +0 -0
- package/python3.4.2/lib/python3.4/test/sortperf.py +169 -0
- package/python3.4.2/lib/python3.4/test/ssl_cert.pem +15 -0
- package/python3.4.2/lib/python3.4/test/ssl_key.passwd.pem +18 -0
- package/python3.4.2/lib/python3.4/test/ssl_key.pem +16 -0
- package/python3.4.2/lib/python3.4/test/ssl_servers.py +205 -0
- package/python3.4.2/lib/python3.4/test/ssltests.py +22 -0
- package/python3.4.2/lib/python3.4/test/string_tests.py +1385 -0
- package/python3.4.2/lib/python3.4/test/subprocessdata/fd_status.py +34 -0
- package/python3.4.2/lib/python3.4/test/subprocessdata/input_reader.py +7 -0
- package/python3.4.2/lib/python3.4/test/subprocessdata/qcat.py +7 -0
- package/python3.4.2/lib/python3.4/test/subprocessdata/qgrep.py +10 -0
- package/python3.4.2/lib/python3.4/test/subprocessdata/sigchild_ignore.py +15 -0
- package/python3.4.2/lib/python3.4/test/support/__init__.py +2241 -0
- package/python3.4.2/lib/python3.4/test/test___all__.py +117 -0
- package/python3.4.2/lib/python3.4/test/test___future__.py +65 -0
- package/python3.4.2/lib/python3.4/test/test__locale.py +170 -0
- package/python3.4.2/lib/python3.4/test/test__opcode.py +23 -0
- package/python3.4.2/lib/python3.4/test/test__osx_support.py +281 -0
- package/python3.4.2/lib/python3.4/test/test_abc.py +408 -0
- package/python3.4.2/lib/python3.4/test/test_abstract_numbers.py +44 -0
- package/python3.4.2/lib/python3.4/test/test_aifc.py +384 -0
- package/python3.4.2/lib/python3.4/test/test_argparse.py +4979 -0
- package/python3.4.2/lib/python3.4/test/test_array.py +1323 -0
- package/python3.4.2/lib/python3.4/test/test_ast.py +1038 -0
- package/python3.4.2/lib/python3.4/test/test_asynchat.py +333 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/__init__.py +10 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/echo.py +8 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/echo2.py +6 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/echo3.py +11 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/keycert3.pem +73 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/pycacert.pem +78 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/ssl_cert.pem +15 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/ssl_key.pem +16 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_base_events.py +1064 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_events.py +2240 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_futures.py +442 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_locks.py +858 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_proactor_events.py +492 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_queues.py +476 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_selector_events.py +1737 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_streams.py +628 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_subprocess.py +217 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_tasks.py +1977 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_transports.py +90 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_unix_events.py +1582 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_windows_events.py +141 -0
- package/python3.4.2/lib/python3.4/test/test_asyncio/test_windows_utils.py +171 -0
- package/python3.4.2/lib/python3.4/test/test_asyncore.py +859 -0
- package/python3.4.2/lib/python3.4/test/test_atexit.py +185 -0
- package/python3.4.2/lib/python3.4/test/test_audioop.py +534 -0
- package/python3.4.2/lib/python3.4/test/test_augassign.py +315 -0
- package/python3.4.2/lib/python3.4/test/test_base64.py +666 -0
- package/python3.4.2/lib/python3.4/test/test_bigaddrspace.py +101 -0
- package/python3.4.2/lib/python3.4/test/test_bigmem.py +1257 -0
- package/python3.4.2/lib/python3.4/test/test_binascii.py +270 -0
- package/python3.4.2/lib/python3.4/test/test_binhex.py +56 -0
- package/python3.4.2/lib/python3.4/test/test_binop.py +380 -0
- package/python3.4.2/lib/python3.4/test/test_bisect.py +328 -0
- package/python3.4.2/lib/python3.4/test/test_bool.py +347 -0
- package/python3.4.2/lib/python3.4/test/test_buffer.py +4294 -0
- package/python3.4.2/lib/python3.4/test/test_bufio.py +73 -0
- package/python3.4.2/lib/python3.4/test/test_builtin.py +1637 -0
- package/python3.4.2/lib/python3.4/test/test_bytes.py +1433 -0
- package/python3.4.2/lib/python3.4/test/test_bz2.py +880 -0
- package/python3.4.2/lib/python3.4/test/test_calendar.py +714 -0
- package/python3.4.2/lib/python3.4/test/test_call.py +131 -0
- package/python3.4.2/lib/python3.4/test/test_capi.py +469 -0
- package/python3.4.2/lib/python3.4/test/test_cgi.py +489 -0
- package/python3.4.2/lib/python3.4/test/test_cgitb.py +70 -0
- package/python3.4.2/lib/python3.4/test/test_charmapcodec.py +56 -0
- package/python3.4.2/lib/python3.4/test/test_class.py +552 -0
- package/python3.4.2/lib/python3.4/test/test_cmath.py +536 -0
- package/python3.4.2/lib/python3.4/test/test_cmd.py +243 -0
- package/python3.4.2/lib/python3.4/test/test_cmd_line.py +473 -0
- package/python3.4.2/lib/python3.4/test/test_cmd_line_script.py +481 -0
- package/python3.4.2/lib/python3.4/test/test_code.py +170 -0
- package/python3.4.2/lib/python3.4/test/test_code_module.py +86 -0
- package/python3.4.2/lib/python3.4/test/test_codeccallbacks.py +880 -0
- package/python3.4.2/lib/python3.4/test/test_codecencodings_cn.py +90 -0
- package/python3.4.2/lib/python3.4/test/test_codecencodings_hk.py +26 -0
- package/python3.4.2/lib/python3.4/test/test_codecencodings_iso2022.py +45 -0
- package/python3.4.2/lib/python3.4/test/test_codecencodings_jp.py +130 -0
- package/python3.4.2/lib/python3.4/test/test_codecencodings_kr.py +73 -0
- package/python3.4.2/lib/python3.4/test/test_codecencodings_tw.py +26 -0
- package/python3.4.2/lib/python3.4/test/test_codecmaps_cn.py +29 -0
- package/python3.4.2/lib/python3.4/test/test_codecmaps_hk.py +16 -0
- package/python3.4.2/lib/python3.4/test/test_codecmaps_jp.py +63 -0
- package/python3.4.2/lib/python3.4/test/test_codecmaps_kr.py +40 -0
- package/python3.4.2/lib/python3.4/test/test_codecmaps_tw.py +30 -0
- package/python3.4.2/lib/python3.4/test/test_codecs.py +2901 -0
- package/python3.4.2/lib/python3.4/test/test_codeop.py +304 -0
- package/python3.4.2/lib/python3.4/test/test_collections.py +1552 -0
- package/python3.4.2/lib/python3.4/test/test_colorsys.py +100 -0
- package/python3.4.2/lib/python3.4/test/test_compare.py +67 -0
- package/python3.4.2/lib/python3.4/test/test_compile.py +561 -0
- package/python3.4.2/lib/python3.4/test/test_compileall.py +384 -0
- package/python3.4.2/lib/python3.4/test/test_complex.py +638 -0
- package/python3.4.2/lib/python3.4/test/test_concurrent_futures.py +685 -0
- package/python3.4.2/lib/python3.4/test/test_configparser.py +1768 -0
- package/python3.4.2/lib/python3.4/test/test_contains.py +93 -0
- package/python3.4.2/lib/python3.4/test/test_contextlib.py +828 -0
- package/python3.4.2/lib/python3.4/test/test_copy.py +759 -0
- package/python3.4.2/lib/python3.4/test/test_copyreg.py +121 -0
- package/python3.4.2/lib/python3.4/test/test_cprofile.py +98 -0
- package/python3.4.2/lib/python3.4/test/test_crashers.py +38 -0
- package/python3.4.2/lib/python3.4/test/test_crypt.py +33 -0
- package/python3.4.2/lib/python3.4/test/test_csv.py +1074 -0
- package/python3.4.2/lib/python3.4/test/test_ctypes.py +6 -0
- package/python3.4.2/lib/python3.4/test/test_curses.py +395 -0
- package/python3.4.2/lib/python3.4/test/test_datetime.py +48 -0
- package/python3.4.2/lib/python3.4/test/test_dbm.py +193 -0
- package/python3.4.2/lib/python3.4/test/test_dbm_dumb.py +228 -0
- package/python3.4.2/lib/python3.4/test/test_dbm_gnu.py +97 -0
- package/python3.4.2/lib/python3.4/test/test_dbm_ndbm.py +54 -0
- package/python3.4.2/lib/python3.4/test/test_decimal.py +5504 -0
- package/python3.4.2/lib/python3.4/test/test_decorators.py +309 -0
- package/python3.4.2/lib/python3.4/test/test_defaultdict.py +190 -0
- package/python3.4.2/lib/python3.4/test/test_deque.py +817 -0
- package/python3.4.2/lib/python3.4/test/test_descr.py +5006 -0
- package/python3.4.2/lib/python3.4/test/test_descrtut.py +485 -0
- package/python3.4.2/lib/python3.4/test/test_devpoll.py +146 -0
- package/python3.4.2/lib/python3.4/test/test_dict.py +928 -0
- package/python3.4.2/lib/python3.4/test/test_dictcomps.py +88 -0
- package/python3.4.2/lib/python3.4/test/test_dictviews.py +206 -0
- package/python3.4.2/lib/python3.4/test/test_difflib.py +298 -0
- package/python3.4.2/lib/python3.4/test/test_difflib_expect.html +526 -0
- package/python3.4.2/lib/python3.4/test/test_dis.py +832 -0
- package/python3.4.2/lib/python3.4/test/test_distutils.py +18 -0
- package/python3.4.2/lib/python3.4/test/test_doctest.py +2921 -0
- package/python3.4.2/lib/python3.4/test/test_doctest.txt +17 -0
- package/python3.4.2/lib/python3.4/test/test_doctest2.py +123 -0
- package/python3.4.2/lib/python3.4/test/test_doctest2.txt +14 -0
- package/python3.4.2/lib/python3.4/test/test_doctest3.txt +5 -0
- package/python3.4.2/lib/python3.4/test/test_doctest4.txt +11 -0
- package/python3.4.2/lib/python3.4/test/test_docxmlrpc.py +219 -0
- package/python3.4.2/lib/python3.4/test/test_dummy_thread.py +182 -0
- package/python3.4.2/lib/python3.4/test/test_dummy_threading.py +64 -0
- package/python3.4.2/lib/python3.4/test/test_dynamic.py +143 -0
- package/python3.4.2/lib/python3.4/test/test_dynamicclassattribute.py +304 -0
- package/python3.4.2/lib/python3.4/test/test_email/__init__.py +159 -0
- package/python3.4.2/lib/python3.4/test/test_email/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/PyBanner048.gif +0 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/audiotest.au +0 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_01.txt +19 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_02.txt +136 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_03.txt +16 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_04.txt +37 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_05.txt +28 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_06.txt +33 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_07.txt +83 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_08.txt +24 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_09.txt +24 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_10.txt +39 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_11.txt +7 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_12.txt +36 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_12a.txt +38 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_13.txt +94 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_14.txt +23 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_15.txt +52 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_16.txt +123 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_17.txt +12 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_18.txt +6 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_19.txt +43 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_20.txt +22 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_21.txt +20 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_22.txt +46 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_23.txt +8 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_24.txt +10 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_25.txt +117 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_26.txt +46 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_27.txt +15 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_28.txt +25 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_29.txt +22 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_30.txt +23 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_31.txt +15 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_32.txt +14 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_33.txt +29 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_34.txt +19 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_35.txt +4 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_36.txt +40 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_37.txt +22 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_38.txt +101 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_39.txt +83 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_40.txt +10 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_41.txt +8 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_42.txt +20 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_43.txt +217 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_44.txt +33 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_45.txt +33 -0
- package/python3.4.2/lib/python3.4/test/test_email/data/msg_46.txt +23 -0
- package/python3.4.2/lib/python3.4/test/test_email/test__encoded_words.py +192 -0
- package/python3.4.2/lib/python3.4/test/test_email/test__header_value_parser.py +2606 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_asian_codecs.py +82 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_contentmanager.py +796 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_defect_handling.py +320 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_email.py +5289 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_generator.py +199 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_headerregistry.py +1594 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_inversion.py +49 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_message.py +783 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_parser.py +36 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_pickleable.py +74 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_policy.py +332 -0
- package/python3.4.2/lib/python3.4/test/test_email/test_utils.py +140 -0
- package/python3.4.2/lib/python3.4/test/test_email/torture_test.py +136 -0
- package/python3.4.2/lib/python3.4/test/test_ensurepip.py +345 -0
- package/python3.4.2/lib/python3.4/test/test_enum.py +1592 -0
- package/python3.4.2/lib/python3.4/test/test_enumerate.py +272 -0
- package/python3.4.2/lib/python3.4/test/test_eof.py +31 -0
- package/python3.4.2/lib/python3.4/test/test_epoll.py +259 -0
- package/python3.4.2/lib/python3.4/test/test_errno.py +40 -0
- package/python3.4.2/lib/python3.4/test/test_exception_variations.py +180 -0
- package/python3.4.2/lib/python3.4/test/test_exceptions.py +978 -0
- package/python3.4.2/lib/python3.4/test/test_extcall.py +349 -0
- package/python3.4.2/lib/python3.4/test/test_faulthandler.py +623 -0
- package/python3.4.2/lib/python3.4/test/test_fcntl.py +152 -0
- package/python3.4.2/lib/python3.4/test/test_file.py +329 -0
- package/python3.4.2/lib/python3.4/test/test_file_eintr.py +236 -0
- package/python3.4.2/lib/python3.4/test/test_filecmp.py +217 -0
- package/python3.4.2/lib/python3.4/test/test_fileinput.py +891 -0
- package/python3.4.2/lib/python3.4/test/test_fileio.py +480 -0
- package/python3.4.2/lib/python3.4/test/test_finalization.py +522 -0
- package/python3.4.2/lib/python3.4/test/test_float.py +1312 -0
- package/python3.4.2/lib/python3.4/test/test_flufl.py +27 -0
- package/python3.4.2/lib/python3.4/test/test_fnmatch.py +89 -0
- package/python3.4.2/lib/python3.4/test/test_fork1.py +111 -0
- package/python3.4.2/lib/python3.4/test/test_format.py +362 -0
- package/python3.4.2/lib/python3.4/test/test_fractions.py +612 -0
- package/python3.4.2/lib/python3.4/test/test_frame.py +168 -0
- package/python3.4.2/lib/python3.4/test/test_ftplib.py +1080 -0
- package/python3.4.2/lib/python3.4/test/test_funcattrs.py +385 -0
- package/python3.4.2/lib/python3.4/test/test_functools.py +1584 -0
- package/python3.4.2/lib/python3.4/test/test_future.py +125 -0
- package/python3.4.2/lib/python3.4/test/test_future3.py +26 -0
- package/python3.4.2/lib/python3.4/test/test_future4.py +6 -0
- package/python3.4.2/lib/python3.4/test/test_future5.py +21 -0
- package/python3.4.2/lib/python3.4/test/test_gc.py +1013 -0
- package/python3.4.2/lib/python3.4/test/test_gdb.py +870 -0
- package/python3.4.2/lib/python3.4/test/test_generators.py +1940 -0
- package/python3.4.2/lib/python3.4/test/test_genericpath.py +439 -0
- package/python3.4.2/lib/python3.4/test/test_genexps.py +285 -0
- package/python3.4.2/lib/python3.4/test/test_getargs2.py +615 -0
- package/python3.4.2/lib/python3.4/test/test_getopt.py +187 -0
- package/python3.4.2/lib/python3.4/test/test_getpass.py +163 -0
- package/python3.4.2/lib/python3.4/test/test_gettext.py +467 -0
- package/python3.4.2/lib/python3.4/test/test_glob.py +200 -0
- package/python3.4.2/lib/python3.4/test/test_global.py +61 -0
- package/python3.4.2/lib/python3.4/test/test_grammar.py +1024 -0
- package/python3.4.2/lib/python3.4/test/test_grp.py +99 -0
- package/python3.4.2/lib/python3.4/test/test_gzip.py +561 -0
- package/python3.4.2/lib/python3.4/test/test_hash.py +346 -0
- package/python3.4.2/lib/python3.4/test/test_hashlib.py +533 -0
- package/python3.4.2/lib/python3.4/test/test_heapq.py +417 -0
- package/python3.4.2/lib/python3.4/test/test_hmac.py +506 -0
- package/python3.4.2/lib/python3.4/test/test_html.py +104 -0
- package/python3.4.2/lib/python3.4/test/test_htmlparser.py +832 -0
- package/python3.4.2/lib/python3.4/test/test_http_cookiejar.py +1714 -0
- package/python3.4.2/lib/python3.4/test/test_http_cookies.py +243 -0
- package/python3.4.2/lib/python3.4/test/test_httplib.py +1025 -0
- package/python3.4.2/lib/python3.4/test/test_httpservers.py +770 -0
- package/python3.4.2/lib/python3.4/test/test_idle.py +16 -0
- package/python3.4.2/lib/python3.4/test/test_imaplib.py +504 -0
- package/python3.4.2/lib/python3.4/test/test_imghdr.py +131 -0
- package/python3.4.2/lib/python3.4/test/test_imp.py +485 -0
- package/python3.4.2/lib/python3.4/test/test_import.py +1072 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/__init__.py +5 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/abc.py +94 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/builtin/__init__.py +5 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/builtin/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/builtin/test_finder.py +85 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/builtin/test_loader.py +106 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/builtin/util.py +7 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/__init__.py +5 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_case_sensitivity.py +51 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_finder.py +44 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_loader.py +86 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/test_path_hook.py +32 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/extension/util.py +19 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/frozen/__init__.py +5 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/frozen/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/frozen/test_finder.py +80 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/frozen/test_loader.py +222 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/__init__.py +5 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test___loader__.py +70 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test___package__.py +133 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_api.py +94 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_caching.py +92 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_fromlist.py +129 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_meta_path.py +119 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_packages.py +110 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_path.py +144 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/test_relative_imports.py +216 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/import_/util.py +20 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/both_portions/foo/one.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/both_portions/foo/two.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/missing_directory.zip +0 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test/empty +0 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/nested_portion1.zip +0 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/not_a_namespace_pkg/foo/one.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/portion1/foo/one.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/portion2/foo/two.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/project1/parent/child/one.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/project2/parent/child/two.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/project3/parent/child/three.py +1 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/namespace_pkgs/top_level_portion1.zip +0 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/regrtest.py +17 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/__init__.py +5 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/test_case_sensitivity.py +83 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/test_file_loader.py +588 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/test_finder.py +232 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/test_path_hook.py +30 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/test_source_encoding.py +165 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/source/util.py +96 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_abc.py +951 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_api.py +437 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_locks.py +156 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_namespace_pkgs.py +293 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_spec.py +957 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_util.py +592 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/test_windows.py +29 -0
- package/python3.4.2/lib/python3.4/test/test_importlib/util.py +225 -0
- package/python3.4.2/lib/python3.4/test/test_index.py +275 -0
- package/python3.4.2/lib/python3.4/test/test_inspect.py +3103 -0
- package/python3.4.2/lib/python3.4/test/test_int.py +458 -0
- package/python3.4.2/lib/python3.4/test/test_int_literal.py +147 -0
- package/python3.4.2/lib/python3.4/test/test_io.py +3481 -0
- package/python3.4.2/lib/python3.4/test/test_ioctl.py +91 -0
- package/python3.4.2/lib/python3.4/test/test_ipaddress.py +1693 -0
- package/python3.4.2/lib/python3.4/test/test_isinstance.py +289 -0
- package/python3.4.2/lib/python3.4/test/test_iter.py +927 -0
- package/python3.4.2/lib/python3.4/test/test_iterlen.py +229 -0
- package/python3.4.2/lib/python3.4/test/test_itertools.py +2142 -0
- package/python3.4.2/lib/python3.4/test/test_json/__init__.py +53 -0
- package/python3.4.2/lib/python3.4/test/test_json/__main__.py +4 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_decode.py +99 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_default.py +12 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_dump.py +49 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_encode_basestring_ascii.py +44 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_enum.py +120 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_fail.py +194 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_float.py +33 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_indent.py +67 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_pass1.py +75 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_pass2.py +18 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_pass3.py +24 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_recursion.py +100 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_scanstring.py +141 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_separators.py +44 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_speedups.py +24 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_tool.py +69 -0
- package/python3.4.2/lib/python3.4/test/test_json/test_unicode.py +75 -0
- package/python3.4.2/lib/python3.4/test/test_keyword.py +138 -0
- package/python3.4.2/lib/python3.4/test/test_keywordonlyarg.py +193 -0
- package/python3.4.2/lib/python3.4/test/test_kqueue.py +219 -0
- package/python3.4.2/lib/python3.4/test/test_largefile.py +180 -0
- package/python3.4.2/lib/python3.4/test/test_lib2to3.py +22 -0
- package/python3.4.2/lib/python3.4/test/test_linecache.py +133 -0
- package/python3.4.2/lib/python3.4/test/test_list.py +125 -0
- package/python3.4.2/lib/python3.4/test/test_listcomps.py +148 -0
- package/python3.4.2/lib/python3.4/test/test_locale.py +528 -0
- package/python3.4.2/lib/python3.4/test/test_logging.py +4179 -0
- package/python3.4.2/lib/python3.4/test/test_long.py +1250 -0
- package/python3.4.2/lib/python3.4/test/test_longexp.py +14 -0
- package/python3.4.2/lib/python3.4/test/test_lzma.py +1592 -0
- package/python3.4.2/lib/python3.4/test/test_macpath.py +123 -0
- package/python3.4.2/lib/python3.4/test/test_macurl2path.py +31 -0
- package/python3.4.2/lib/python3.4/test/test_mailbox.py +2287 -0
- package/python3.4.2/lib/python3.4/test/test_mailcap.py +221 -0
- package/python3.4.2/lib/python3.4/test/test_marshal.py +451 -0
- package/python3.4.2/lib/python3.4/test/test_math.py +1107 -0
- package/python3.4.2/lib/python3.4/test/test_memoryio.py +784 -0
- package/python3.4.2/lib/python3.4/test/test_memoryview.py +478 -0
- package/python3.4.2/lib/python3.4/test/test_metaclass.py +265 -0
- package/python3.4.2/lib/python3.4/test/test_mimetypes.py +111 -0
- package/python3.4.2/lib/python3.4/test/test_minidom.py +1545 -0
- package/python3.4.2/lib/python3.4/test/test_mmap.py +774 -0
- package/python3.4.2/lib/python3.4/test/test_module.py +222 -0
- package/python3.4.2/lib/python3.4/test/test_modulefinder.py +324 -0
- package/python3.4.2/lib/python3.4/test/test_msilib.py +46 -0
- package/python3.4.2/lib/python3.4/test/test_multibytecodec.py +263 -0
- package/python3.4.2/lib/python3.4/test/test_multiprocessing_fork.py +7 -0
- package/python3.4.2/lib/python3.4/test/test_multiprocessing_forkserver.py +7 -0
- package/python3.4.2/lib/python3.4/test/test_multiprocessing_main_handling.py +289 -0
- package/python3.4.2/lib/python3.4/test/test_multiprocessing_spawn.py +7 -0
- package/python3.4.2/lib/python3.4/test/test_netrc.py +130 -0
- package/python3.4.2/lib/python3.4/test/test_nis.py +43 -0
- package/python3.4.2/lib/python3.4/test/test_nntplib.py +1429 -0
- package/python3.4.2/lib/python3.4/test/test_normalization.py +104 -0
- package/python3.4.2/lib/python3.4/test/test_ntpath.py +385 -0
- package/python3.4.2/lib/python3.4/test/test_numeric_tower.py +206 -0
- package/python3.4.2/lib/python3.4/test/test_opcodes.py +112 -0
- package/python3.4.2/lib/python3.4/test/test_openpty.py +25 -0
- package/python3.4.2/lib/python3.4/test/test_operator.py +484 -0
- package/python3.4.2/lib/python3.4/test/test_optparse.py +1657 -0
- package/python3.4.2/lib/python3.4/test/test_os.py +2550 -0
- package/python3.4.2/lib/python3.4/test/test_ossaudiodev.py +202 -0
- package/python3.4.2/lib/python3.4/test/test_osx_env.py +34 -0
- package/python3.4.2/lib/python3.4/test/test_parser.py +745 -0
- package/python3.4.2/lib/python3.4/test/test_pathlib.py +1884 -0
- package/python3.4.2/lib/python3.4/test/test_pdb.py +1052 -0
- package/python3.4.2/lib/python3.4/test/test_peepholer.py +339 -0
- package/python3.4.2/lib/python3.4/test/test_pep247.py +70 -0
- package/python3.4.2/lib/python3.4/test/test_pep277.py +201 -0
- package/python3.4.2/lib/python3.4/test/test_pep292.py +247 -0
- package/python3.4.2/lib/python3.4/test/test_pep3120.py +47 -0
- package/python3.4.2/lib/python3.4/test/test_pep3131.py +35 -0
- package/python3.4.2/lib/python3.4/test/test_pep3151.py +209 -0
- package/python3.4.2/lib/python3.4/test/test_pep352.py +184 -0
- package/python3.4.2/lib/python3.4/test/test_pep380.py +1023 -0
- package/python3.4.2/lib/python3.4/test/test_pickle.py +156 -0
- package/python3.4.2/lib/python3.4/test/test_pickletools.py +25 -0
- package/python3.4.2/lib/python3.4/test/test_pipes.py +196 -0
- package/python3.4.2/lib/python3.4/test/test_pkg.py +299 -0
- package/python3.4.2/lib/python3.4/test/test_pkgimport.py +84 -0
- package/python3.4.2/lib/python3.4/test/test_pkgutil.py +410 -0
- package/python3.4.2/lib/python3.4/test/test_platform.py +320 -0
- package/python3.4.2/lib/python3.4/test/test_plistlib.py +526 -0
- package/python3.4.2/lib/python3.4/test/test_poll.py +215 -0
- package/python3.4.2/lib/python3.4/test/test_popen.py +64 -0
- package/python3.4.2/lib/python3.4/test/test_poplib.py +507 -0
- package/python3.4.2/lib/python3.4/test/test_posix.py +1183 -0
- package/python3.4.2/lib/python3.4/test/test_posixpath.py +544 -0
- package/python3.4.2/lib/python3.4/test/test_pow.py +129 -0
- package/python3.4.2/lib/python3.4/test/test_pprint.py +602 -0
- package/python3.4.2/lib/python3.4/test/test_print.py +132 -0
- package/python3.4.2/lib/python3.4/test/test_profile.py +187 -0
- package/python3.4.2/lib/python3.4/test/test_property.py +254 -0
- package/python3.4.2/lib/python3.4/test/test_pstats.py +45 -0
- package/python3.4.2/lib/python3.4/test/test_pty.py +302 -0
- package/python3.4.2/lib/python3.4/test/test_pulldom.py +347 -0
- package/python3.4.2/lib/python3.4/test/test_pwd.py +114 -0
- package/python3.4.2/lib/python3.4/test/test_py_compile.py +103 -0
- package/python3.4.2/lib/python3.4/test/test_pyclbr.py +181 -0
- package/python3.4.2/lib/python3.4/test/test_pydoc.py +1003 -0
- package/python3.4.2/lib/python3.4/test/test_pyexpat.py +708 -0
- package/python3.4.2/lib/python3.4/test/test_queue.py +363 -0
- package/python3.4.2/lib/python3.4/test/test_quopri.py +208 -0
- package/python3.4.2/lib/python3.4/test/test_raise.py +422 -0
- package/python3.4.2/lib/python3.4/test/test_random.py +759 -0
- package/python3.4.2/lib/python3.4/test/test_range.py +652 -0
- package/python3.4.2/lib/python3.4/test/test_re.py +1451 -0
- package/python3.4.2/lib/python3.4/test/test_readline.py +60 -0
- package/python3.4.2/lib/python3.4/test/test_regrtest.py +275 -0
- package/python3.4.2/lib/python3.4/test/test_reprlib.py +383 -0
- package/python3.4.2/lib/python3.4/test/test_resource.py +166 -0
- package/python3.4.2/lib/python3.4/test/test_richcmp.py +333 -0
- package/python3.4.2/lib/python3.4/test/test_rlcompleter.py +73 -0
- package/python3.4.2/lib/python3.4/test/test_robotparser.py +320 -0
- package/python3.4.2/lib/python3.4/test/test_runpy.py +691 -0
- package/python3.4.2/lib/python3.4/test/test_sax.py +1007 -0
- package/python3.4.2/lib/python3.4/test/test_sched.py +199 -0
- package/python3.4.2/lib/python3.4/test/test_scope.py +764 -0
- package/python3.4.2/lib/python3.4/test/test_select.py +83 -0
- package/python3.4.2/lib/python3.4/test/test_selectors.py +453 -0
- package/python3.4.2/lib/python3.4/test/test_set.py +1839 -0
- package/python3.4.2/lib/python3.4/test/test_setcomps.py +151 -0
- package/python3.4.2/lib/python3.4/test/test_shelve.py +224 -0
- package/python3.4.2/lib/python3.4/test/test_shlex.py +202 -0
- package/python3.4.2/lib/python3.4/test/test_shutil.py +1766 -0
- package/python3.4.2/lib/python3.4/test/test_signal.py +940 -0
- package/python3.4.2/lib/python3.4/test/test_site.py +468 -0
- package/python3.4.2/lib/python3.4/test/test_slice.py +247 -0
- package/python3.4.2/lib/python3.4/test/test_smtpd.py +557 -0
- package/python3.4.2/lib/python3.4/test/test_smtplib.py +950 -0
- package/python3.4.2/lib/python3.4/test/test_smtpnet.py +86 -0
- package/python3.4.2/lib/python3.4/test/test_sndhdr.py +23 -0
- package/python3.4.2/lib/python3.4/test/test_socket.py +5163 -0
- package/python3.4.2/lib/python3.4/test/test_socketserver.py +314 -0
- package/python3.4.2/lib/python3.4/test/test_sort.py +285 -0
- package/python3.4.2/lib/python3.4/test/test_source_encoding.py +145 -0
- package/python3.4.2/lib/python3.4/test/test_spwd.py +60 -0
- package/python3.4.2/lib/python3.4/test/test_sqlite.py +24 -0
- package/python3.4.2/lib/python3.4/test/test_ssl.py +2908 -0
- package/python3.4.2/lib/python3.4/test/test_startfile.py +37 -0
- package/python3.4.2/lib/python3.4/test/test_stat.py +202 -0
- package/python3.4.2/lib/python3.4/test/test_statistics.py +1574 -0
- package/python3.4.2/lib/python3.4/test/test_strftime.py +204 -0
- package/python3.4.2/lib/python3.4/test/test_string.py +174 -0
- package/python3.4.2/lib/python3.4/test/test_stringprep.py +96 -0
- package/python3.4.2/lib/python3.4/test/test_strlit.py +206 -0
- package/python3.4.2/lib/python3.4/test/test_strptime.py +577 -0
- package/python3.4.2/lib/python3.4/test/test_strtod.py +436 -0
- package/python3.4.2/lib/python3.4/test/test_struct.py +667 -0
- package/python3.4.2/lib/python3.4/test/test_structmembers.py +147 -0
- package/python3.4.2/lib/python3.4/test/test_structseq.py +130 -0
- package/python3.4.2/lib/python3.4/test/test_subprocess.py +2474 -0
- package/python3.4.2/lib/python3.4/test/test_sunau.py +122 -0
- package/python3.4.2/lib/python3.4/test/test_sundry.py +59 -0
- package/python3.4.2/lib/python3.4/test/test_super.py +181 -0
- package/python3.4.2/lib/python3.4/test/test_support.py +315 -0
- package/python3.4.2/lib/python3.4/test/test_symtable.py +176 -0
- package/python3.4.2/lib/python3.4/test/test_syntax.py +593 -0
- package/python3.4.2/lib/python3.4/test/test_sys.py +1000 -0
- package/python3.4.2/lib/python3.4/test/test_sys_setprofile.py +386 -0
- package/python3.4.2/lib/python3.4/test/test_sys_settrace.py +834 -0
- package/python3.4.2/lib/python3.4/test/test_sysconfig.py +423 -0
- package/python3.4.2/lib/python3.4/test/test_syslog.py +43 -0
- package/python3.4.2/lib/python3.4/test/test_tarfile.py +2180 -0
- package/python3.4.2/lib/python3.4/test/test_tcl.py +642 -0
- package/python3.4.2/lib/python3.4/test/test_telnetlib.py +401 -0
- package/python3.4.2/lib/python3.4/test/test_tempfile.py +1248 -0
- package/python3.4.2/lib/python3.4/test/test_textwrap.py +929 -0
- package/python3.4.2/lib/python3.4/test/test_thread.py +260 -0
- package/python3.4.2/lib/python3.4/test/test_threaded_import.py +244 -0
- package/python3.4.2/lib/python3.4/test/test_threadedtempfile.py +78 -0
- package/python3.4.2/lib/python3.4/test/test_threading.py +1021 -0
- package/python3.4.2/lib/python3.4/test/test_threading_local.py +225 -0
- package/python3.4.2/lib/python3.4/test/test_threadsignals.py +227 -0
- package/python3.4.2/lib/python3.4/test/test_time.py +763 -0
- package/python3.4.2/lib/python3.4/test/test_timeit.py +306 -0
- package/python3.4.2/lib/python3.4/test/test_timeout.py +303 -0
- package/python3.4.2/lib/python3.4/test/test_tk.py +18 -0
- package/python3.4.2/lib/python3.4/test/test_tokenize.py +1233 -0
- package/python3.4.2/lib/python3.4/test/test_trace.py +415 -0
- package/python3.4.2/lib/python3.4/test/test_traceback.py +451 -0
- package/python3.4.2/lib/python3.4/test/test_tracemalloc.py +826 -0
- package/python3.4.2/lib/python3.4/test/test_ttk_guionly.py +37 -0
- package/python3.4.2/lib/python3.4/test/test_ttk_textonly.py +17 -0
- package/python3.4.2/lib/python3.4/test/test_tuple.py +208 -0
- package/python3.4.2/lib/python3.4/test/test_typechecks.py +76 -0
- package/python3.4.2/lib/python3.4/test/test_types.py +1178 -0
- package/python3.4.2/lib/python3.4/test/test_ucn.py +240 -0
- package/python3.4.2/lib/python3.4/test/test_unary.py +58 -0
- package/python3.4.2/lib/python3.4/test/test_unicode.py +2596 -0
- package/python3.4.2/lib/python3.4/test/test_unicode_file.py +144 -0
- package/python3.4.2/lib/python3.4/test/test_unicodedata.py +323 -0
- package/python3.4.2/lib/python3.4/test/test_unittest.py +16 -0
- package/python3.4.2/lib/python3.4/test/test_univnewlines.py +123 -0
- package/python3.4.2/lib/python3.4/test/test_unpack.py +130 -0
- package/python3.4.2/lib/python3.4/test/test_unpack_ex.py +174 -0
- package/python3.4.2/lib/python3.4/test/test_urllib.py +1486 -0
- package/python3.4.2/lib/python3.4/test/test_urllib2.py +1646 -0
- package/python3.4.2/lib/python3.4/test/test_urllib2_localnet.py +690 -0
- package/python3.4.2/lib/python3.4/test/test_urllib2net.py +342 -0
- package/python3.4.2/lib/python3.4/test/test_urllib_response.py +59 -0
- package/python3.4.2/lib/python3.4/test/test_urllibnet.py +212 -0
- package/python3.4.2/lib/python3.4/test/test_urlparse.py +879 -0
- package/python3.4.2/lib/python3.4/test/test_userdict.py +199 -0
- package/python3.4.2/lib/python3.4/test/test_userlist.py +65 -0
- package/python3.4.2/lib/python3.4/test/test_userstring.py +47 -0
- package/python3.4.2/lib/python3.4/test/test_uu.py +239 -0
- package/python3.4.2/lib/python3.4/test/test_uuid.py +498 -0
- package/python3.4.2/lib/python3.4/test/test_venv.py +406 -0
- package/python3.4.2/lib/python3.4/test/test_wait3.py +38 -0
- package/python3.4.2/lib/python3.4/test/test_wait4.py +38 -0
- package/python3.4.2/lib/python3.4/test/test_warnings.py +873 -0
- package/python3.4.2/lib/python3.4/test/test_wave.py +107 -0
- package/python3.4.2/lib/python3.4/test/test_weakref.py +1801 -0
- package/python3.4.2/lib/python3.4/test/test_weakset.py +450 -0
- package/python3.4.2/lib/python3.4/test/test_webbrowser.py +192 -0
- package/python3.4.2/lib/python3.4/test/test_winreg.py +485 -0
- package/python3.4.2/lib/python3.4/test/test_winsound.py +253 -0
- package/python3.4.2/lib/python3.4/test/test_with.py +750 -0
- package/python3.4.2/lib/python3.4/test/test_wsgiref.py +640 -0
- package/python3.4.2/lib/python3.4/test/test_xdrlib.py +58 -0
- package/python3.4.2/lib/python3.4/test/test_xml_dom_minicompat.py +101 -0
- package/python3.4.2/lib/python3.4/test/test_xml_etree.py +2587 -0
- package/python3.4.2/lib/python3.4/test/test_xml_etree_c.py +94 -0
- package/python3.4.2/lib/python3.4/test/test_xmlrpc.py +1114 -0
- package/python3.4.2/lib/python3.4/test/test_xmlrpc_net.py +33 -0
- package/python3.4.2/lib/python3.4/test/test_zipfile.py +1783 -0
- package/python3.4.2/lib/python3.4/test/test_zipfile64.py +118 -0
- package/python3.4.2/lib/python3.4/test/test_zipimport.py +507 -0
- package/python3.4.2/lib/python3.4/test/test_zipimport_support.py +246 -0
- package/python3.4.2/lib/python3.4/test/test_zlib.py +725 -0
- package/python3.4.2/lib/python3.4/test/testcodec.py +48 -0
- package/python3.4.2/lib/python3.4/test/testtar.tar +0 -0
- package/python3.4.2/lib/python3.4/test/tf_inherit_check.py +25 -0
- package/python3.4.2/lib/python3.4/test/threaded_import_hangers.py +45 -0
- package/python3.4.2/lib/python3.4/test/time_hashlib.py +87 -0
- package/python3.4.2/lib/python3.4/test/tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt +13 -0
- package/python3.4.2/lib/python3.4/test/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt +11 -0
- package/python3.4.2/lib/python3.4/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt +13 -0
- package/python3.4.2/lib/python3.4/test/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt +12 -0
- package/python3.4.2/lib/python3.4/test/tokenize_tests.txt +189 -0
- package/python3.4.2/lib/python3.4/test/tracedmodules/__init__.py +4 -0
- package/python3.4.2/lib/python3.4/test/tracedmodules/testmod.py +9 -0
- package/python3.4.2/lib/python3.4/test/warning_tests.py +9 -0
- package/python3.4.2/lib/python3.4/test/win_console_handler.py +49 -0
- package/python3.4.2/lib/python3.4/test/xmltestdata/simple-ns.xml +7 -0
- package/python3.4.2/lib/python3.4/test/xmltestdata/simple.xml +6 -0
- package/python3.4.2/lib/python3.4/test/xmltestdata/test.xml +115 -0
- package/python3.4.2/lib/python3.4/test/xmltestdata/test.xml.out +115 -0
- package/python3.4.2/lib/python3.4/test/xmltests.py +21 -0
- package/python3.4.2/lib/python3.4/test/zip_cp437_header.zip +0 -0
- package/python3.4.2/lib/python3.4/test/zipdir.zip +0 -0
- package/python3.4.2/lib/python3.4/textwrap.py +470 -0
- package/python3.4.2/lib/python3.4/this.py +28 -0
- package/python3.4.2/lib/python3.4/threading.py +1359 -0
- package/python3.4.2/lib/python3.4/timeit.py +322 -0
- package/python3.4.2/lib/python3.4/tkinter/__init__.py +3898 -0
- package/python3.4.2/lib/python3.4/tkinter/__main__.py +7 -0
- package/python3.4.2/lib/python3.4/tkinter/_fix.py +78 -0
- package/python3.4.2/lib/python3.4/tkinter/colorchooser.py +72 -0
- package/python3.4.2/lib/python3.4/tkinter/commondialog.py +60 -0
- package/python3.4.2/lib/python3.4/tkinter/constants.py +110 -0
- package/python3.4.2/lib/python3.4/tkinter/dialog.py +49 -0
- package/python3.4.2/lib/python3.4/tkinter/dnd.py +321 -0
- package/python3.4.2/lib/python3.4/tkinter/filedialog.py +479 -0
- package/python3.4.2/lib/python3.4/tkinter/font.py +234 -0
- package/python3.4.2/lib/python3.4/tkinter/messagebox.py +134 -0
- package/python3.4.2/lib/python3.4/tkinter/scrolledtext.py +54 -0
- package/python3.4.2/lib/python3.4/tkinter/simpledialog.py +423 -0
- package/python3.4.2/lib/python3.4/tkinter/test/README +14 -0
- package/python3.4.2/lib/python3.4/tkinter/test/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/tkinter/test/runtktests.py +71 -0
- package/python3.4.2/lib/python3.4/tkinter/test/support.py +104 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_font.py +27 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_geometry_managers.py +900 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_images.py +327 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_loadtk.py +46 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_misc.py +42 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_text.py +47 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_variables.py +186 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_tkinter/test_widgets.py +1193 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_extensions.py +291 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_functions.py +462 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_style.py +92 -0
- package/python3.4.2/lib/python3.4/tkinter/test/test_ttk/test_widgets.py +1598 -0
- package/python3.4.2/lib/python3.4/tkinter/test/widget_tests.py +521 -0
- package/python3.4.2/lib/python3.4/tkinter/tix.py +1944 -0
- package/python3.4.2/lib/python3.4/tkinter/ttk.py +1616 -0
- package/python3.4.2/lib/python3.4/token.py +140 -0
- package/python3.4.2/lib/python3.4/tokenize.py +691 -0
- package/python3.4.2/lib/python3.4/trace.py +858 -0
- package/python3.4.2/lib/python3.4/traceback.py +313 -0
- package/python3.4.2/lib/python3.4/tracemalloc.py +487 -0
- package/python3.4.2/lib/python3.4/tty.py +36 -0
- package/python3.4.2/lib/python3.4/turtle.py +4140 -0
- package/python3.4.2/lib/python3.4/turtledemo/__init__.py +14 -0
- package/python3.4.2/lib/python3.4/turtledemo/__main__.py +380 -0
- package/python3.4.2/lib/python3.4/turtledemo/bytedesign.py +162 -0
- package/python3.4.2/lib/python3.4/turtledemo/chaos.py +59 -0
- package/python3.4.2/lib/python3.4/turtledemo/clock.py +132 -0
- package/python3.4.2/lib/python3.4/turtledemo/colormixer.py +58 -0
- package/python3.4.2/lib/python3.4/turtledemo/forest.py +108 -0
- package/python3.4.2/lib/python3.4/turtledemo/fractalcurves.py +138 -0
- package/python3.4.2/lib/python3.4/turtledemo/lindenmayer.py +119 -0
- package/python3.4.2/lib/python3.4/turtledemo/minimal_hanoi.py +79 -0
- package/python3.4.2/lib/python3.4/turtledemo/nim.py +226 -0
- package/python3.4.2/lib/python3.4/turtledemo/paint.py +54 -0
- package/python3.4.2/lib/python3.4/turtledemo/peace.py +61 -0
- package/python3.4.2/lib/python3.4/turtledemo/penrose.py +181 -0
- package/python3.4.2/lib/python3.4/turtledemo/planet_and_moon.py +112 -0
- package/python3.4.2/lib/python3.4/turtledemo/round_dance.py +86 -0
- package/python3.4.2/lib/python3.4/turtledemo/tree.py +63 -0
- package/python3.4.2/lib/python3.4/turtledemo/turtle.cfg +10 -0
- package/python3.4.2/lib/python3.4/turtledemo/two_canvases.py +54 -0
- package/python3.4.2/lib/python3.4/turtledemo/wikipedia.py +65 -0
- package/python3.4.2/lib/python3.4/turtledemo/yinyang.py +49 -0
- package/python3.4.2/lib/python3.4/types.py +158 -0
- package/python3.4.2/lib/python3.4/unittest/__init__.py +69 -0
- package/python3.4.2/lib/python3.4/unittest/__main__.py +18 -0
- package/python3.4.2/lib/python3.4/unittest/case.py +1400 -0
- package/python3.4.2/lib/python3.4/unittest/loader.py +379 -0
- package/python3.4.2/lib/python3.4/unittest/main.py +248 -0
- package/python3.4.2/lib/python3.4/unittest/mock.py +2330 -0
- package/python3.4.2/lib/python3.4/unittest/result.py +212 -0
- package/python3.4.2/lib/python3.4/unittest/runner.py +213 -0
- package/python3.4.2/lib/python3.4/unittest/signals.py +71 -0
- package/python3.4.2/lib/python3.4/unittest/suite.py +324 -0
- package/python3.4.2/lib/python3.4/unittest/test/__init__.py +22 -0
- package/python3.4.2/lib/python3.4/unittest/test/__main__.py +18 -0
- package/python3.4.2/lib/python3.4/unittest/test/_test_warnings.py +73 -0
- package/python3.4.2/lib/python3.4/unittest/test/dummy.py +1 -0
- package/python3.4.2/lib/python3.4/unittest/test/support.py +142 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_assertions.py +398 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_break.py +288 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_case.py +1574 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_discovery.py +527 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_functiontestcase.py +148 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_loader.py +1312 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_program.py +396 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_result.py +660 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_runner.py +346 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_setups.py +506 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_skipping.py +227 -0
- package/python3.4.2/lib/python3.4/unittest/test/test_suite.py +447 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/__init__.py +17 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/__main__.py +18 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/support.py +23 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testcallable.py +151 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testhelpers.py +908 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testmagicmethods.py +428 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testmock.py +1412 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testpatch.py +1801 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testsentinel.py +28 -0
- package/python3.4.2/lib/python3.4/unittest/test/testmock/testwith.py +259 -0
- package/python3.4.2/lib/python3.4/unittest/util.py +177 -0
- package/python3.4.2/lib/python3.4/urllib/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/urllib/error.py +76 -0
- package/python3.4.2/lib/python3.4/urllib/parse.py +973 -0
- package/python3.4.2/lib/python3.4/urllib/request.py +2559 -0
- package/python3.4.2/lib/python3.4/urllib/response.py +76 -0
- package/python3.4.2/lib/python3.4/urllib/robotparser.py +212 -0
- package/python3.4.2/lib/python3.4/uu.py +199 -0
- package/python3.4.2/lib/python3.4/uuid.py +591 -0
- package/python3.4.2/lib/python3.4/venv/__init__.py +449 -0
- package/python3.4.2/lib/python3.4/venv/__main__.py +10 -0
- package/python3.4.2/lib/python3.4/venv/scripts/posix/activate +76 -0
- package/python3.4.2/lib/python3.4/venv/scripts/posix/activate.csh +37 -0
- package/python3.4.2/lib/python3.4/venv/scripts/posix/activate.fish +74 -0
- package/python3.4.2/lib/python3.4/warnings.py +407 -0
- package/python3.4.2/lib/python3.4/wave.py +503 -0
- package/python3.4.2/lib/python3.4/weakref.py +577 -0
- package/python3.4.2/lib/python3.4/webbrowser.py +651 -0
- package/python3.4.2/lib/python3.4/wsgiref/__init__.py +23 -0
- package/python3.4.2/lib/python3.4/wsgiref/handlers.py +547 -0
- package/python3.4.2/lib/python3.4/wsgiref/headers.py +184 -0
- package/python3.4.2/lib/python3.4/wsgiref/simple_server.py +165 -0
- package/python3.4.2/lib/python3.4/wsgiref/util.py +165 -0
- package/python3.4.2/lib/python3.4/wsgiref/validate.py +443 -0
- package/python3.4.2/lib/python3.4/xdrlib.py +224 -0
- package/python3.4.2/lib/python3.4/xml/__init__.py +20 -0
- package/python3.4.2/lib/python3.4/xml/dom/NodeFilter.py +27 -0
- package/python3.4.2/lib/python3.4/xml/dom/__init__.py +140 -0
- package/python3.4.2/lib/python3.4/xml/dom/domreg.py +97 -0
- package/python3.4.2/lib/python3.4/xml/dom/expatbuilder.py +965 -0
- package/python3.4.2/lib/python3.4/xml/dom/minicompat.py +109 -0
- package/python3.4.2/lib/python3.4/xml/dom/minidom.py +1983 -0
- package/python3.4.2/lib/python3.4/xml/dom/pulldom.py +342 -0
- package/python3.4.2/lib/python3.4/xml/dom/xmlbuilder.py +386 -0
- package/python3.4.2/lib/python3.4/xml/etree/ElementInclude.py +143 -0
- package/python3.4.2/lib/python3.4/xml/etree/ElementPath.py +308 -0
- package/python3.4.2/lib/python3.4/xml/etree/ElementTree.py +1667 -0
- package/python3.4.2/lib/python3.4/xml/etree/__init__.py +33 -0
- package/python3.4.2/lib/python3.4/xml/etree/cElementTree.py +3 -0
- package/python3.4.2/lib/python3.4/xml/parsers/__init__.py +8 -0
- package/python3.4.2/lib/python3.4/xml/parsers/expat.py +8 -0
- package/python3.4.2/lib/python3.4/xml/sax/__init__.py +105 -0
- package/python3.4.2/lib/python3.4/xml/sax/_exceptions.py +131 -0
- package/python3.4.2/lib/python3.4/xml/sax/expatreader.py +417 -0
- package/python3.4.2/lib/python3.4/xml/sax/handler.py +342 -0
- package/python3.4.2/lib/python3.4/xml/sax/saxutils.py +365 -0
- package/python3.4.2/lib/python3.4/xml/sax/xmlreader.py +378 -0
- package/python3.4.2/lib/python3.4/xmlrpc/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/xmlrpc/client.py +1479 -0
- package/python3.4.2/lib/python3.4/xmlrpc/server.py +986 -0
- package/python3.4.2/lib/python3.4/zipfile.py +1788 -0
- package/python3.4.2/share/man/man1/python3.1 +460 -0
- package/python3.4.2/share/man/man1/python3.4.1 +460 -0
|
@@ -0,0 +1,2240 @@
|
|
|
1
|
+
"""Tests for events.py."""
|
|
2
|
+
|
|
3
|
+
import functools
|
|
4
|
+
import gc
|
|
5
|
+
import io
|
|
6
|
+
import os
|
|
7
|
+
import platform
|
|
8
|
+
import re
|
|
9
|
+
import signal
|
|
10
|
+
import socket
|
|
11
|
+
try:
|
|
12
|
+
import ssl
|
|
13
|
+
except ImportError:
|
|
14
|
+
ssl = None
|
|
15
|
+
HAS_SNI = False
|
|
16
|
+
else:
|
|
17
|
+
from ssl import HAS_SNI
|
|
18
|
+
import subprocess
|
|
19
|
+
import sys
|
|
20
|
+
import threading
|
|
21
|
+
import time
|
|
22
|
+
import errno
|
|
23
|
+
import unittest
|
|
24
|
+
from unittest import mock
|
|
25
|
+
import weakref
|
|
26
|
+
from test import support # find_unused_port, IPV6_ENABLED, TEST_HOME_DIR
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
import asyncio
|
|
30
|
+
from asyncio import proactor_events
|
|
31
|
+
from asyncio import selector_events
|
|
32
|
+
from asyncio import test_utils
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def data_file(filename):
|
|
36
|
+
if hasattr(support, 'TEST_HOME_DIR'):
|
|
37
|
+
fullname = os.path.join(support.TEST_HOME_DIR, filename)
|
|
38
|
+
if os.path.isfile(fullname):
|
|
39
|
+
return fullname
|
|
40
|
+
fullname = os.path.join(os.path.dirname(__file__), filename)
|
|
41
|
+
if os.path.isfile(fullname):
|
|
42
|
+
return fullname
|
|
43
|
+
raise FileNotFoundError(filename)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def osx_tiger():
|
|
47
|
+
"""Return True if the platform is Mac OS 10.4 or older."""
|
|
48
|
+
if sys.platform != 'darwin':
|
|
49
|
+
return False
|
|
50
|
+
version = platform.mac_ver()[0]
|
|
51
|
+
version = tuple(map(int, version.split('.')))
|
|
52
|
+
return version < (10, 5)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
ONLYCERT = data_file('ssl_cert.pem')
|
|
56
|
+
ONLYKEY = data_file('ssl_key.pem')
|
|
57
|
+
SIGNED_CERTFILE = data_file('keycert3.pem')
|
|
58
|
+
SIGNING_CA = data_file('pycacert.pem')
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class MyBaseProto(asyncio.Protocol):
|
|
62
|
+
connected = None
|
|
63
|
+
done = None
|
|
64
|
+
|
|
65
|
+
def __init__(self, loop=None):
|
|
66
|
+
self.transport = None
|
|
67
|
+
self.state = 'INITIAL'
|
|
68
|
+
self.nbytes = 0
|
|
69
|
+
if loop is not None:
|
|
70
|
+
self.connected = asyncio.Future(loop=loop)
|
|
71
|
+
self.done = asyncio.Future(loop=loop)
|
|
72
|
+
|
|
73
|
+
def connection_made(self, transport):
|
|
74
|
+
self.transport = transport
|
|
75
|
+
assert self.state == 'INITIAL', self.state
|
|
76
|
+
self.state = 'CONNECTED'
|
|
77
|
+
if self.connected:
|
|
78
|
+
self.connected.set_result(None)
|
|
79
|
+
|
|
80
|
+
def data_received(self, data):
|
|
81
|
+
assert self.state == 'CONNECTED', self.state
|
|
82
|
+
self.nbytes += len(data)
|
|
83
|
+
|
|
84
|
+
def eof_received(self):
|
|
85
|
+
assert self.state == 'CONNECTED', self.state
|
|
86
|
+
self.state = 'EOF'
|
|
87
|
+
|
|
88
|
+
def connection_lost(self, exc):
|
|
89
|
+
assert self.state in ('CONNECTED', 'EOF'), self.state
|
|
90
|
+
self.state = 'CLOSED'
|
|
91
|
+
if self.done:
|
|
92
|
+
self.done.set_result(None)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
class MyProto(MyBaseProto):
|
|
96
|
+
def connection_made(self, transport):
|
|
97
|
+
super().connection_made(transport)
|
|
98
|
+
transport.write(b'GET / HTTP/1.0\r\nHost: example.com\r\n\r\n')
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class MyDatagramProto(asyncio.DatagramProtocol):
|
|
102
|
+
done = None
|
|
103
|
+
|
|
104
|
+
def __init__(self, loop=None):
|
|
105
|
+
self.state = 'INITIAL'
|
|
106
|
+
self.nbytes = 0
|
|
107
|
+
if loop is not None:
|
|
108
|
+
self.done = asyncio.Future(loop=loop)
|
|
109
|
+
|
|
110
|
+
def connection_made(self, transport):
|
|
111
|
+
self.transport = transport
|
|
112
|
+
assert self.state == 'INITIAL', self.state
|
|
113
|
+
self.state = 'INITIALIZED'
|
|
114
|
+
|
|
115
|
+
def datagram_received(self, data, addr):
|
|
116
|
+
assert self.state == 'INITIALIZED', self.state
|
|
117
|
+
self.nbytes += len(data)
|
|
118
|
+
|
|
119
|
+
def error_received(self, exc):
|
|
120
|
+
assert self.state == 'INITIALIZED', self.state
|
|
121
|
+
|
|
122
|
+
def connection_lost(self, exc):
|
|
123
|
+
assert self.state == 'INITIALIZED', self.state
|
|
124
|
+
self.state = 'CLOSED'
|
|
125
|
+
if self.done:
|
|
126
|
+
self.done.set_result(None)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
class MyReadPipeProto(asyncio.Protocol):
|
|
130
|
+
done = None
|
|
131
|
+
|
|
132
|
+
def __init__(self, loop=None):
|
|
133
|
+
self.state = ['INITIAL']
|
|
134
|
+
self.nbytes = 0
|
|
135
|
+
self.transport = None
|
|
136
|
+
if loop is not None:
|
|
137
|
+
self.done = asyncio.Future(loop=loop)
|
|
138
|
+
|
|
139
|
+
def connection_made(self, transport):
|
|
140
|
+
self.transport = transport
|
|
141
|
+
assert self.state == ['INITIAL'], self.state
|
|
142
|
+
self.state.append('CONNECTED')
|
|
143
|
+
|
|
144
|
+
def data_received(self, data):
|
|
145
|
+
assert self.state == ['INITIAL', 'CONNECTED'], self.state
|
|
146
|
+
self.nbytes += len(data)
|
|
147
|
+
|
|
148
|
+
def eof_received(self):
|
|
149
|
+
assert self.state == ['INITIAL', 'CONNECTED'], self.state
|
|
150
|
+
self.state.append('EOF')
|
|
151
|
+
|
|
152
|
+
def connection_lost(self, exc):
|
|
153
|
+
if 'EOF' not in self.state:
|
|
154
|
+
self.state.append('EOF') # It is okay if EOF is missed.
|
|
155
|
+
assert self.state == ['INITIAL', 'CONNECTED', 'EOF'], self.state
|
|
156
|
+
self.state.append('CLOSED')
|
|
157
|
+
if self.done:
|
|
158
|
+
self.done.set_result(None)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
class MyWritePipeProto(asyncio.BaseProtocol):
|
|
162
|
+
done = None
|
|
163
|
+
|
|
164
|
+
def __init__(self, loop=None):
|
|
165
|
+
self.state = 'INITIAL'
|
|
166
|
+
self.transport = None
|
|
167
|
+
if loop is not None:
|
|
168
|
+
self.done = asyncio.Future(loop=loop)
|
|
169
|
+
|
|
170
|
+
def connection_made(self, transport):
|
|
171
|
+
self.transport = transport
|
|
172
|
+
assert self.state == 'INITIAL', self.state
|
|
173
|
+
self.state = 'CONNECTED'
|
|
174
|
+
|
|
175
|
+
def connection_lost(self, exc):
|
|
176
|
+
assert self.state == 'CONNECTED', self.state
|
|
177
|
+
self.state = 'CLOSED'
|
|
178
|
+
if self.done:
|
|
179
|
+
self.done.set_result(None)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
class MySubprocessProtocol(asyncio.SubprocessProtocol):
|
|
183
|
+
|
|
184
|
+
def __init__(self, loop):
|
|
185
|
+
self.state = 'INITIAL'
|
|
186
|
+
self.transport = None
|
|
187
|
+
self.connected = asyncio.Future(loop=loop)
|
|
188
|
+
self.completed = asyncio.Future(loop=loop)
|
|
189
|
+
self.disconnects = {fd: asyncio.Future(loop=loop) for fd in range(3)}
|
|
190
|
+
self.data = {1: b'', 2: b''}
|
|
191
|
+
self.returncode = None
|
|
192
|
+
self.got_data = {1: asyncio.Event(loop=loop),
|
|
193
|
+
2: asyncio.Event(loop=loop)}
|
|
194
|
+
|
|
195
|
+
def connection_made(self, transport):
|
|
196
|
+
self.transport = transport
|
|
197
|
+
assert self.state == 'INITIAL', self.state
|
|
198
|
+
self.state = 'CONNECTED'
|
|
199
|
+
self.connected.set_result(None)
|
|
200
|
+
|
|
201
|
+
def connection_lost(self, exc):
|
|
202
|
+
assert self.state == 'CONNECTED', self.state
|
|
203
|
+
self.state = 'CLOSED'
|
|
204
|
+
self.completed.set_result(None)
|
|
205
|
+
|
|
206
|
+
def pipe_data_received(self, fd, data):
|
|
207
|
+
assert self.state == 'CONNECTED', self.state
|
|
208
|
+
self.data[fd] += data
|
|
209
|
+
self.got_data[fd].set()
|
|
210
|
+
|
|
211
|
+
def pipe_connection_lost(self, fd, exc):
|
|
212
|
+
assert self.state == 'CONNECTED', self.state
|
|
213
|
+
if exc:
|
|
214
|
+
self.disconnects[fd].set_exception(exc)
|
|
215
|
+
else:
|
|
216
|
+
self.disconnects[fd].set_result(exc)
|
|
217
|
+
|
|
218
|
+
def process_exited(self):
|
|
219
|
+
assert self.state == 'CONNECTED', self.state
|
|
220
|
+
self.returncode = self.transport.get_returncode()
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
class EventLoopTestsMixin:
|
|
224
|
+
|
|
225
|
+
def setUp(self):
|
|
226
|
+
super().setUp()
|
|
227
|
+
self.loop = self.create_event_loop()
|
|
228
|
+
self.set_event_loop(self.loop)
|
|
229
|
+
|
|
230
|
+
def tearDown(self):
|
|
231
|
+
# just in case if we have transport close callbacks
|
|
232
|
+
test_utils.run_briefly(self.loop)
|
|
233
|
+
|
|
234
|
+
self.loop.close()
|
|
235
|
+
gc.collect()
|
|
236
|
+
super().tearDown()
|
|
237
|
+
|
|
238
|
+
def test_run_until_complete_nesting(self):
|
|
239
|
+
@asyncio.coroutine
|
|
240
|
+
def coro1():
|
|
241
|
+
yield
|
|
242
|
+
|
|
243
|
+
@asyncio.coroutine
|
|
244
|
+
def coro2():
|
|
245
|
+
self.assertTrue(self.loop.is_running())
|
|
246
|
+
self.loop.run_until_complete(coro1())
|
|
247
|
+
|
|
248
|
+
self.assertRaises(
|
|
249
|
+
RuntimeError, self.loop.run_until_complete, coro2())
|
|
250
|
+
|
|
251
|
+
# Note: because of the default Windows timing granularity of
|
|
252
|
+
# 15.6 msec, we use fairly long sleep times here (~100 msec).
|
|
253
|
+
|
|
254
|
+
def test_run_until_complete(self):
|
|
255
|
+
t0 = self.loop.time()
|
|
256
|
+
self.loop.run_until_complete(asyncio.sleep(0.1, loop=self.loop))
|
|
257
|
+
t1 = self.loop.time()
|
|
258
|
+
self.assertTrue(0.08 <= t1-t0 <= 0.8, t1-t0)
|
|
259
|
+
|
|
260
|
+
def test_run_until_complete_stopped(self):
|
|
261
|
+
@asyncio.coroutine
|
|
262
|
+
def cb():
|
|
263
|
+
self.loop.stop()
|
|
264
|
+
yield from asyncio.sleep(0.1, loop=self.loop)
|
|
265
|
+
task = cb()
|
|
266
|
+
self.assertRaises(RuntimeError,
|
|
267
|
+
self.loop.run_until_complete, task)
|
|
268
|
+
|
|
269
|
+
def test_call_later(self):
|
|
270
|
+
results = []
|
|
271
|
+
|
|
272
|
+
def callback(arg):
|
|
273
|
+
results.append(arg)
|
|
274
|
+
self.loop.stop()
|
|
275
|
+
|
|
276
|
+
self.loop.call_later(0.1, callback, 'hello world')
|
|
277
|
+
t0 = time.monotonic()
|
|
278
|
+
self.loop.run_forever()
|
|
279
|
+
t1 = time.monotonic()
|
|
280
|
+
self.assertEqual(results, ['hello world'])
|
|
281
|
+
self.assertTrue(0.08 <= t1-t0 <= 0.8, t1-t0)
|
|
282
|
+
|
|
283
|
+
def test_call_soon(self):
|
|
284
|
+
results = []
|
|
285
|
+
|
|
286
|
+
def callback(arg1, arg2):
|
|
287
|
+
results.append((arg1, arg2))
|
|
288
|
+
self.loop.stop()
|
|
289
|
+
|
|
290
|
+
self.loop.call_soon(callback, 'hello', 'world')
|
|
291
|
+
self.loop.run_forever()
|
|
292
|
+
self.assertEqual(results, [('hello', 'world')])
|
|
293
|
+
|
|
294
|
+
def test_call_soon_threadsafe(self):
|
|
295
|
+
results = []
|
|
296
|
+
lock = threading.Lock()
|
|
297
|
+
|
|
298
|
+
def callback(arg):
|
|
299
|
+
results.append(arg)
|
|
300
|
+
if len(results) >= 2:
|
|
301
|
+
self.loop.stop()
|
|
302
|
+
|
|
303
|
+
def run_in_thread():
|
|
304
|
+
self.loop.call_soon_threadsafe(callback, 'hello')
|
|
305
|
+
lock.release()
|
|
306
|
+
|
|
307
|
+
lock.acquire()
|
|
308
|
+
t = threading.Thread(target=run_in_thread)
|
|
309
|
+
t.start()
|
|
310
|
+
|
|
311
|
+
with lock:
|
|
312
|
+
self.loop.call_soon(callback, 'world')
|
|
313
|
+
self.loop.run_forever()
|
|
314
|
+
t.join()
|
|
315
|
+
self.assertEqual(results, ['hello', 'world'])
|
|
316
|
+
|
|
317
|
+
def test_call_soon_threadsafe_same_thread(self):
|
|
318
|
+
results = []
|
|
319
|
+
|
|
320
|
+
def callback(arg):
|
|
321
|
+
results.append(arg)
|
|
322
|
+
if len(results) >= 2:
|
|
323
|
+
self.loop.stop()
|
|
324
|
+
|
|
325
|
+
self.loop.call_soon_threadsafe(callback, 'hello')
|
|
326
|
+
self.loop.call_soon(callback, 'world')
|
|
327
|
+
self.loop.run_forever()
|
|
328
|
+
self.assertEqual(results, ['hello', 'world'])
|
|
329
|
+
|
|
330
|
+
def test_run_in_executor(self):
|
|
331
|
+
def run(arg):
|
|
332
|
+
return (arg, threading.get_ident())
|
|
333
|
+
f2 = self.loop.run_in_executor(None, run, 'yo')
|
|
334
|
+
res, thread_id = self.loop.run_until_complete(f2)
|
|
335
|
+
self.assertEqual(res, 'yo')
|
|
336
|
+
self.assertNotEqual(thread_id, threading.get_ident())
|
|
337
|
+
|
|
338
|
+
def test_reader_callback(self):
|
|
339
|
+
r, w = test_utils.socketpair()
|
|
340
|
+
r.setblocking(False)
|
|
341
|
+
bytes_read = bytearray()
|
|
342
|
+
|
|
343
|
+
def reader():
|
|
344
|
+
try:
|
|
345
|
+
data = r.recv(1024)
|
|
346
|
+
except BlockingIOError:
|
|
347
|
+
# Spurious readiness notifications are possible
|
|
348
|
+
# at least on Linux -- see man select.
|
|
349
|
+
return
|
|
350
|
+
if data:
|
|
351
|
+
bytes_read.extend(data)
|
|
352
|
+
else:
|
|
353
|
+
self.assertTrue(self.loop.remove_reader(r.fileno()))
|
|
354
|
+
r.close()
|
|
355
|
+
|
|
356
|
+
self.loop.add_reader(r.fileno(), reader)
|
|
357
|
+
self.loop.call_soon(w.send, b'abc')
|
|
358
|
+
test_utils.run_until(self.loop, lambda: len(bytes_read) >= 3)
|
|
359
|
+
self.loop.call_soon(w.send, b'def')
|
|
360
|
+
test_utils.run_until(self.loop, lambda: len(bytes_read) >= 6)
|
|
361
|
+
self.loop.call_soon(w.close)
|
|
362
|
+
self.loop.call_soon(self.loop.stop)
|
|
363
|
+
self.loop.run_forever()
|
|
364
|
+
self.assertEqual(bytes_read, b'abcdef')
|
|
365
|
+
|
|
366
|
+
def test_writer_callback(self):
|
|
367
|
+
r, w = test_utils.socketpair()
|
|
368
|
+
w.setblocking(False)
|
|
369
|
+
|
|
370
|
+
def writer(data):
|
|
371
|
+
w.send(data)
|
|
372
|
+
self.loop.stop()
|
|
373
|
+
|
|
374
|
+
data = b'x' * 1024
|
|
375
|
+
self.loop.add_writer(w.fileno(), writer, data)
|
|
376
|
+
self.loop.run_forever()
|
|
377
|
+
|
|
378
|
+
self.assertTrue(self.loop.remove_writer(w.fileno()))
|
|
379
|
+
self.assertFalse(self.loop.remove_writer(w.fileno()))
|
|
380
|
+
|
|
381
|
+
w.close()
|
|
382
|
+
read = r.recv(len(data) * 2)
|
|
383
|
+
r.close()
|
|
384
|
+
self.assertEqual(read, data)
|
|
385
|
+
|
|
386
|
+
def _basetest_sock_client_ops(self, httpd, sock):
|
|
387
|
+
if not isinstance(self.loop, proactor_events.BaseProactorEventLoop):
|
|
388
|
+
# in debug mode, socket operations must fail
|
|
389
|
+
# if the socket is not in blocking mode
|
|
390
|
+
self.loop.set_debug(True)
|
|
391
|
+
sock.setblocking(True)
|
|
392
|
+
with self.assertRaises(ValueError):
|
|
393
|
+
self.loop.run_until_complete(
|
|
394
|
+
self.loop.sock_connect(sock, httpd.address))
|
|
395
|
+
with self.assertRaises(ValueError):
|
|
396
|
+
self.loop.run_until_complete(
|
|
397
|
+
self.loop.sock_sendall(sock, b'GET / HTTP/1.0\r\n\r\n'))
|
|
398
|
+
with self.assertRaises(ValueError):
|
|
399
|
+
self.loop.run_until_complete(
|
|
400
|
+
self.loop.sock_recv(sock, 1024))
|
|
401
|
+
with self.assertRaises(ValueError):
|
|
402
|
+
self.loop.run_until_complete(
|
|
403
|
+
self.loop.sock_accept(sock))
|
|
404
|
+
|
|
405
|
+
# test in non-blocking mode
|
|
406
|
+
sock.setblocking(False)
|
|
407
|
+
self.loop.run_until_complete(
|
|
408
|
+
self.loop.sock_connect(sock, httpd.address))
|
|
409
|
+
self.loop.run_until_complete(
|
|
410
|
+
self.loop.sock_sendall(sock, b'GET / HTTP/1.0\r\n\r\n'))
|
|
411
|
+
data = self.loop.run_until_complete(
|
|
412
|
+
self.loop.sock_recv(sock, 1024))
|
|
413
|
+
# consume data
|
|
414
|
+
self.loop.run_until_complete(
|
|
415
|
+
self.loop.sock_recv(sock, 1024))
|
|
416
|
+
sock.close()
|
|
417
|
+
self.assertTrue(data.startswith(b'HTTP/1.0 200 OK'))
|
|
418
|
+
|
|
419
|
+
def test_sock_client_ops(self):
|
|
420
|
+
with test_utils.run_test_server() as httpd:
|
|
421
|
+
sock = socket.socket()
|
|
422
|
+
self._basetest_sock_client_ops(httpd, sock)
|
|
423
|
+
|
|
424
|
+
@unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'No UNIX Sockets')
|
|
425
|
+
def test_unix_sock_client_ops(self):
|
|
426
|
+
with test_utils.run_test_unix_server() as httpd:
|
|
427
|
+
sock = socket.socket(socket.AF_UNIX)
|
|
428
|
+
self._basetest_sock_client_ops(httpd, sock)
|
|
429
|
+
|
|
430
|
+
def test_sock_client_fail(self):
|
|
431
|
+
# Make sure that we will get an unused port
|
|
432
|
+
address = None
|
|
433
|
+
try:
|
|
434
|
+
s = socket.socket()
|
|
435
|
+
s.bind(('127.0.0.1', 0))
|
|
436
|
+
address = s.getsockname()
|
|
437
|
+
finally:
|
|
438
|
+
s.close()
|
|
439
|
+
|
|
440
|
+
sock = socket.socket()
|
|
441
|
+
sock.setblocking(False)
|
|
442
|
+
with self.assertRaises(ConnectionRefusedError):
|
|
443
|
+
self.loop.run_until_complete(
|
|
444
|
+
self.loop.sock_connect(sock, address))
|
|
445
|
+
sock.close()
|
|
446
|
+
|
|
447
|
+
def test_sock_accept(self):
|
|
448
|
+
listener = socket.socket()
|
|
449
|
+
listener.setblocking(False)
|
|
450
|
+
listener.bind(('127.0.0.1', 0))
|
|
451
|
+
listener.listen(1)
|
|
452
|
+
client = socket.socket()
|
|
453
|
+
client.connect(listener.getsockname())
|
|
454
|
+
|
|
455
|
+
f = self.loop.sock_accept(listener)
|
|
456
|
+
conn, addr = self.loop.run_until_complete(f)
|
|
457
|
+
self.assertEqual(conn.gettimeout(), 0)
|
|
458
|
+
self.assertEqual(addr, client.getsockname())
|
|
459
|
+
self.assertEqual(client.getpeername(), listener.getsockname())
|
|
460
|
+
client.close()
|
|
461
|
+
conn.close()
|
|
462
|
+
listener.close()
|
|
463
|
+
|
|
464
|
+
@unittest.skipUnless(hasattr(signal, 'SIGKILL'), 'No SIGKILL')
|
|
465
|
+
def test_add_signal_handler(self):
|
|
466
|
+
caught = 0
|
|
467
|
+
|
|
468
|
+
def my_handler():
|
|
469
|
+
nonlocal caught
|
|
470
|
+
caught += 1
|
|
471
|
+
|
|
472
|
+
# Check error behavior first.
|
|
473
|
+
self.assertRaises(
|
|
474
|
+
TypeError, self.loop.add_signal_handler, 'boom', my_handler)
|
|
475
|
+
self.assertRaises(
|
|
476
|
+
TypeError, self.loop.remove_signal_handler, 'boom')
|
|
477
|
+
self.assertRaises(
|
|
478
|
+
ValueError, self.loop.add_signal_handler, signal.NSIG+1,
|
|
479
|
+
my_handler)
|
|
480
|
+
self.assertRaises(
|
|
481
|
+
ValueError, self.loop.remove_signal_handler, signal.NSIG+1)
|
|
482
|
+
self.assertRaises(
|
|
483
|
+
ValueError, self.loop.add_signal_handler, 0, my_handler)
|
|
484
|
+
self.assertRaises(
|
|
485
|
+
ValueError, self.loop.remove_signal_handler, 0)
|
|
486
|
+
self.assertRaises(
|
|
487
|
+
ValueError, self.loop.add_signal_handler, -1, my_handler)
|
|
488
|
+
self.assertRaises(
|
|
489
|
+
ValueError, self.loop.remove_signal_handler, -1)
|
|
490
|
+
self.assertRaises(
|
|
491
|
+
RuntimeError, self.loop.add_signal_handler, signal.SIGKILL,
|
|
492
|
+
my_handler)
|
|
493
|
+
# Removing SIGKILL doesn't raise, since we don't call signal().
|
|
494
|
+
self.assertFalse(self.loop.remove_signal_handler(signal.SIGKILL))
|
|
495
|
+
# Now set a handler and handle it.
|
|
496
|
+
self.loop.add_signal_handler(signal.SIGINT, my_handler)
|
|
497
|
+
|
|
498
|
+
os.kill(os.getpid(), signal.SIGINT)
|
|
499
|
+
test_utils.run_until(self.loop, lambda: caught)
|
|
500
|
+
|
|
501
|
+
# Removing it should restore the default handler.
|
|
502
|
+
self.assertTrue(self.loop.remove_signal_handler(signal.SIGINT))
|
|
503
|
+
self.assertEqual(signal.getsignal(signal.SIGINT),
|
|
504
|
+
signal.default_int_handler)
|
|
505
|
+
# Removing again returns False.
|
|
506
|
+
self.assertFalse(self.loop.remove_signal_handler(signal.SIGINT))
|
|
507
|
+
|
|
508
|
+
@unittest.skipUnless(hasattr(signal, 'SIGALRM'), 'No SIGALRM')
|
|
509
|
+
def test_signal_handling_while_selecting(self):
|
|
510
|
+
# Test with a signal actually arriving during a select() call.
|
|
511
|
+
caught = 0
|
|
512
|
+
|
|
513
|
+
def my_handler():
|
|
514
|
+
nonlocal caught
|
|
515
|
+
caught += 1
|
|
516
|
+
self.loop.stop()
|
|
517
|
+
|
|
518
|
+
self.loop.add_signal_handler(signal.SIGALRM, my_handler)
|
|
519
|
+
|
|
520
|
+
signal.setitimer(signal.ITIMER_REAL, 0.01, 0) # Send SIGALRM once.
|
|
521
|
+
self.loop.run_forever()
|
|
522
|
+
self.assertEqual(caught, 1)
|
|
523
|
+
|
|
524
|
+
@unittest.skipUnless(hasattr(signal, 'SIGALRM'), 'No SIGALRM')
|
|
525
|
+
def test_signal_handling_args(self):
|
|
526
|
+
some_args = (42,)
|
|
527
|
+
caught = 0
|
|
528
|
+
|
|
529
|
+
def my_handler(*args):
|
|
530
|
+
nonlocal caught
|
|
531
|
+
caught += 1
|
|
532
|
+
self.assertEqual(args, some_args)
|
|
533
|
+
|
|
534
|
+
self.loop.add_signal_handler(signal.SIGALRM, my_handler, *some_args)
|
|
535
|
+
|
|
536
|
+
signal.setitimer(signal.ITIMER_REAL, 0.1, 0) # Send SIGALRM once.
|
|
537
|
+
self.loop.call_later(0.5, self.loop.stop)
|
|
538
|
+
self.loop.run_forever()
|
|
539
|
+
self.assertEqual(caught, 1)
|
|
540
|
+
|
|
541
|
+
def _basetest_create_connection(self, connection_fut, check_sockname=True):
|
|
542
|
+
tr, pr = self.loop.run_until_complete(connection_fut)
|
|
543
|
+
self.assertIsInstance(tr, asyncio.Transport)
|
|
544
|
+
self.assertIsInstance(pr, asyncio.Protocol)
|
|
545
|
+
self.assertIs(pr.transport, tr)
|
|
546
|
+
if check_sockname:
|
|
547
|
+
self.assertIsNotNone(tr.get_extra_info('sockname'))
|
|
548
|
+
self.loop.run_until_complete(pr.done)
|
|
549
|
+
self.assertGreater(pr.nbytes, 0)
|
|
550
|
+
tr.close()
|
|
551
|
+
|
|
552
|
+
def test_create_connection(self):
|
|
553
|
+
with test_utils.run_test_server() as httpd:
|
|
554
|
+
conn_fut = self.loop.create_connection(
|
|
555
|
+
lambda: MyProto(loop=self.loop), *httpd.address)
|
|
556
|
+
self._basetest_create_connection(conn_fut)
|
|
557
|
+
|
|
558
|
+
@unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'No UNIX Sockets')
|
|
559
|
+
def test_create_unix_connection(self):
|
|
560
|
+
# Issue #20682: On Mac OS X Tiger, getsockname() returns a
|
|
561
|
+
# zero-length address for UNIX socket.
|
|
562
|
+
check_sockname = not osx_tiger()
|
|
563
|
+
|
|
564
|
+
with test_utils.run_test_unix_server() as httpd:
|
|
565
|
+
conn_fut = self.loop.create_unix_connection(
|
|
566
|
+
lambda: MyProto(loop=self.loop), httpd.address)
|
|
567
|
+
self._basetest_create_connection(conn_fut, check_sockname)
|
|
568
|
+
|
|
569
|
+
def test_create_connection_sock(self):
|
|
570
|
+
with test_utils.run_test_server() as httpd:
|
|
571
|
+
sock = None
|
|
572
|
+
infos = self.loop.run_until_complete(
|
|
573
|
+
self.loop.getaddrinfo(
|
|
574
|
+
*httpd.address, type=socket.SOCK_STREAM))
|
|
575
|
+
for family, type, proto, cname, address in infos:
|
|
576
|
+
try:
|
|
577
|
+
sock = socket.socket(family=family, type=type, proto=proto)
|
|
578
|
+
sock.setblocking(False)
|
|
579
|
+
self.loop.run_until_complete(
|
|
580
|
+
self.loop.sock_connect(sock, address))
|
|
581
|
+
except:
|
|
582
|
+
pass
|
|
583
|
+
else:
|
|
584
|
+
break
|
|
585
|
+
else:
|
|
586
|
+
assert False, 'Can not create socket.'
|
|
587
|
+
|
|
588
|
+
f = self.loop.create_connection(
|
|
589
|
+
lambda: MyProto(loop=self.loop), sock=sock)
|
|
590
|
+
tr, pr = self.loop.run_until_complete(f)
|
|
591
|
+
self.assertIsInstance(tr, asyncio.Transport)
|
|
592
|
+
self.assertIsInstance(pr, asyncio.Protocol)
|
|
593
|
+
self.loop.run_until_complete(pr.done)
|
|
594
|
+
self.assertGreater(pr.nbytes, 0)
|
|
595
|
+
tr.close()
|
|
596
|
+
|
|
597
|
+
def _basetest_create_ssl_connection(self, connection_fut,
|
|
598
|
+
check_sockname=True):
|
|
599
|
+
tr, pr = self.loop.run_until_complete(connection_fut)
|
|
600
|
+
self.assertIsInstance(tr, asyncio.Transport)
|
|
601
|
+
self.assertIsInstance(pr, asyncio.Protocol)
|
|
602
|
+
self.assertTrue('ssl' in tr.__class__.__name__.lower())
|
|
603
|
+
if check_sockname:
|
|
604
|
+
self.assertIsNotNone(tr.get_extra_info('sockname'))
|
|
605
|
+
self.loop.run_until_complete(pr.done)
|
|
606
|
+
self.assertGreater(pr.nbytes, 0)
|
|
607
|
+
tr.close()
|
|
608
|
+
|
|
609
|
+
@unittest.skipIf(ssl is None, 'No ssl module')
|
|
610
|
+
def test_create_ssl_connection(self):
|
|
611
|
+
with test_utils.run_test_server(use_ssl=True) as httpd:
|
|
612
|
+
conn_fut = self.loop.create_connection(
|
|
613
|
+
lambda: MyProto(loop=self.loop),
|
|
614
|
+
*httpd.address,
|
|
615
|
+
ssl=test_utils.dummy_ssl_context())
|
|
616
|
+
|
|
617
|
+
self._basetest_create_ssl_connection(conn_fut)
|
|
618
|
+
|
|
619
|
+
@unittest.skipIf(ssl is None, 'No ssl module')
|
|
620
|
+
@unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'No UNIX Sockets')
|
|
621
|
+
def test_create_ssl_unix_connection(self):
|
|
622
|
+
# Issue #20682: On Mac OS X Tiger, getsockname() returns a
|
|
623
|
+
# zero-length address for UNIX socket.
|
|
624
|
+
check_sockname = not osx_tiger()
|
|
625
|
+
|
|
626
|
+
with test_utils.run_test_unix_server(use_ssl=True) as httpd:
|
|
627
|
+
conn_fut = self.loop.create_unix_connection(
|
|
628
|
+
lambda: MyProto(loop=self.loop),
|
|
629
|
+
httpd.address,
|
|
630
|
+
ssl=test_utils.dummy_ssl_context(),
|
|
631
|
+
server_hostname='127.0.0.1')
|
|
632
|
+
|
|
633
|
+
self._basetest_create_ssl_connection(conn_fut, check_sockname)
|
|
634
|
+
|
|
635
|
+
def test_create_connection_local_addr(self):
|
|
636
|
+
with test_utils.run_test_server() as httpd:
|
|
637
|
+
port = support.find_unused_port()
|
|
638
|
+
f = self.loop.create_connection(
|
|
639
|
+
lambda: MyProto(loop=self.loop),
|
|
640
|
+
*httpd.address, local_addr=(httpd.address[0], port))
|
|
641
|
+
tr, pr = self.loop.run_until_complete(f)
|
|
642
|
+
expected = pr.transport.get_extra_info('sockname')[1]
|
|
643
|
+
self.assertEqual(port, expected)
|
|
644
|
+
tr.close()
|
|
645
|
+
|
|
646
|
+
def test_create_connection_local_addr_in_use(self):
|
|
647
|
+
with test_utils.run_test_server() as httpd:
|
|
648
|
+
f = self.loop.create_connection(
|
|
649
|
+
lambda: MyProto(loop=self.loop),
|
|
650
|
+
*httpd.address, local_addr=httpd.address)
|
|
651
|
+
with self.assertRaises(OSError) as cm:
|
|
652
|
+
self.loop.run_until_complete(f)
|
|
653
|
+
self.assertEqual(cm.exception.errno, errno.EADDRINUSE)
|
|
654
|
+
self.assertIn(str(httpd.address), cm.exception.strerror)
|
|
655
|
+
|
|
656
|
+
def test_create_server(self):
|
|
657
|
+
proto = MyProto(self.loop)
|
|
658
|
+
f = self.loop.create_server(lambda: proto, '0.0.0.0', 0)
|
|
659
|
+
server = self.loop.run_until_complete(f)
|
|
660
|
+
self.assertEqual(len(server.sockets), 1)
|
|
661
|
+
sock = server.sockets[0]
|
|
662
|
+
host, port = sock.getsockname()
|
|
663
|
+
self.assertEqual(host, '0.0.0.0')
|
|
664
|
+
client = socket.socket()
|
|
665
|
+
client.connect(('127.0.0.1', port))
|
|
666
|
+
client.sendall(b'xxx')
|
|
667
|
+
|
|
668
|
+
self.loop.run_until_complete(proto.connected)
|
|
669
|
+
self.assertEqual('CONNECTED', proto.state)
|
|
670
|
+
|
|
671
|
+
test_utils.run_until(self.loop, lambda: proto.nbytes > 0)
|
|
672
|
+
self.assertEqual(3, proto.nbytes)
|
|
673
|
+
|
|
674
|
+
# extra info is available
|
|
675
|
+
self.assertIsNotNone(proto.transport.get_extra_info('sockname'))
|
|
676
|
+
self.assertEqual('127.0.0.1',
|
|
677
|
+
proto.transport.get_extra_info('peername')[0])
|
|
678
|
+
|
|
679
|
+
# close connection
|
|
680
|
+
proto.transport.close()
|
|
681
|
+
self.loop.run_until_complete(proto.done)
|
|
682
|
+
|
|
683
|
+
self.assertEqual('CLOSED', proto.state)
|
|
684
|
+
|
|
685
|
+
# the client socket must be closed after to avoid ECONNRESET upon
|
|
686
|
+
# recv()/send() on the serving socket
|
|
687
|
+
client.close()
|
|
688
|
+
|
|
689
|
+
# close server
|
|
690
|
+
server.close()
|
|
691
|
+
|
|
692
|
+
def _make_unix_server(self, factory, **kwargs):
|
|
693
|
+
path = test_utils.gen_unix_socket_path()
|
|
694
|
+
self.addCleanup(lambda: os.path.exists(path) and os.unlink(path))
|
|
695
|
+
|
|
696
|
+
f = self.loop.create_unix_server(factory, path, **kwargs)
|
|
697
|
+
server = self.loop.run_until_complete(f)
|
|
698
|
+
|
|
699
|
+
return server, path
|
|
700
|
+
|
|
701
|
+
@unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'No UNIX Sockets')
|
|
702
|
+
def test_create_unix_server(self):
|
|
703
|
+
proto = MyProto(loop=self.loop)
|
|
704
|
+
server, path = self._make_unix_server(lambda: proto)
|
|
705
|
+
self.assertEqual(len(server.sockets), 1)
|
|
706
|
+
|
|
707
|
+
client = socket.socket(socket.AF_UNIX)
|
|
708
|
+
client.connect(path)
|
|
709
|
+
client.sendall(b'xxx')
|
|
710
|
+
|
|
711
|
+
self.loop.run_until_complete(proto.connected)
|
|
712
|
+
self.assertEqual('CONNECTED', proto.state)
|
|
713
|
+
test_utils.run_until(self.loop, lambda: proto.nbytes > 0)
|
|
714
|
+
self.assertEqual(3, proto.nbytes)
|
|
715
|
+
|
|
716
|
+
# close connection
|
|
717
|
+
proto.transport.close()
|
|
718
|
+
self.loop.run_until_complete(proto.done)
|
|
719
|
+
|
|
720
|
+
self.assertEqual('CLOSED', proto.state)
|
|
721
|
+
|
|
722
|
+
# the client socket must be closed after to avoid ECONNRESET upon
|
|
723
|
+
# recv()/send() on the serving socket
|
|
724
|
+
client.close()
|
|
725
|
+
|
|
726
|
+
# close server
|
|
727
|
+
server.close()
|
|
728
|
+
|
|
729
|
+
@unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'No UNIX Sockets')
|
|
730
|
+
def test_create_unix_server_path_socket_error(self):
|
|
731
|
+
proto = MyProto(loop=self.loop)
|
|
732
|
+
sock = socket.socket()
|
|
733
|
+
with sock:
|
|
734
|
+
f = self.loop.create_unix_server(lambda: proto, '/test', sock=sock)
|
|
735
|
+
with self.assertRaisesRegex(ValueError,
|
|
736
|
+
'path and sock can not be specified '
|
|
737
|
+
'at the same time'):
|
|
738
|
+
self.loop.run_until_complete(f)
|
|
739
|
+
|
|
740
|
+
def _create_ssl_context(self, certfile, keyfile=None):
|
|
741
|
+
sslcontext = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
|
742
|
+
sslcontext.options |= ssl.OP_NO_SSLv2
|
|
743
|
+
sslcontext.load_cert_chain(certfile, keyfile)
|
|
744
|
+
return sslcontext
|
|
745
|
+
|
|
746
|
+
def _make_ssl_server(self, factory, certfile, keyfile=None):
|
|
747
|
+
sslcontext = self._create_ssl_context(certfile, keyfile)
|
|
748
|
+
|
|
749
|
+
f = self.loop.create_server(factory, '127.0.0.1', 0, ssl=sslcontext)
|
|
750
|
+
server = self.loop.run_until_complete(f)
|
|
751
|
+
|
|
752
|
+
sock = server.sockets[0]
|
|
753
|
+
host, port = sock.getsockname()
|
|
754
|
+
self.assertEqual(host, '127.0.0.1')
|
|
755
|
+
return server, host, port
|
|
756
|
+
|
|
757
|
+
def _make_ssl_unix_server(self, factory, certfile, keyfile=None):
|
|
758
|
+
sslcontext = self._create_ssl_context(certfile, keyfile)
|
|
759
|
+
return self._make_unix_server(factory, ssl=sslcontext)
|
|
760
|
+
|
|
761
|
+
@unittest.skipIf(ssl is None, 'No ssl module')
|
|
762
|
+
def test_create_server_ssl(self):
|
|
763
|
+
proto = MyProto(loop=self.loop)
|
|
764
|
+
server, host, port = self._make_ssl_server(
|
|
765
|
+
lambda: proto, ONLYCERT, ONLYKEY)
|
|
766
|
+
|
|
767
|
+
f_c = self.loop.create_connection(MyBaseProto, host, port,
|
|
768
|
+
ssl=test_utils.dummy_ssl_context())
|
|
769
|
+
client, pr = self.loop.run_until_complete(f_c)
|
|
770
|
+
|
|
771
|
+
client.write(b'xxx')
|
|
772
|
+
self.loop.run_until_complete(proto.connected)
|
|
773
|
+
self.assertEqual('CONNECTED', proto.state)
|
|
774
|
+
|
|
775
|
+
test_utils.run_until(self.loop, lambda: proto.nbytes > 0)
|
|
776
|
+
self.assertEqual(3, proto.nbytes)
|
|
777
|
+
|
|
778
|
+
# extra info is available
|
|
779
|
+
self.assertIsNotNone(proto.transport.get_extra_info('sockname'))
|
|
780
|
+
self.assertEqual('127.0.0.1',
|
|
781
|
+
proto.transport.get_extra_info('peername')[0])
|
|
782
|
+
|
|
783
|
+
# close connection
|
|
784
|
+
proto.transport.close()
|
|
785
|
+
self.loop.run_until_complete(proto.done)
|
|
786
|
+
self.assertEqual('CLOSED', proto.state)
|
|
787
|
+
|
|
788
|
+
# the client socket must be closed after to avoid ECONNRESET upon
|
|
789
|
+
# recv()/send() on the serving socket
|
|
790
|
+
client.close()
|
|
791
|
+
|
|
792
|
+
# stop serving
|
|
793
|
+
server.close()
|
|
794
|
+
|
|
795
|
+
@unittest.skipIf(ssl is None, 'No ssl module')
|
|
796
|
+
@unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'No UNIX Sockets')
|
|
797
|
+
def test_create_unix_server_ssl(self):
|
|
798
|
+
proto = MyProto(loop=self.loop)
|
|
799
|
+
server, path = self._make_ssl_unix_server(
|
|
800
|
+
lambda: proto, ONLYCERT, ONLYKEY)
|
|
801
|
+
|
|
802
|
+
f_c = self.loop.create_unix_connection(
|
|
803
|
+
MyBaseProto, path, ssl=test_utils.dummy_ssl_context(),
|
|
804
|
+
server_hostname='')
|
|
805
|
+
|
|
806
|
+
client, pr = self.loop.run_until_complete(f_c)
|
|
807
|
+
|
|
808
|
+
client.write(b'xxx')
|
|
809
|
+
self.loop.run_until_complete(proto.connected)
|
|
810
|
+
self.assertEqual('CONNECTED', proto.state)
|
|
811
|
+
test_utils.run_until(self.loop, lambda: proto.nbytes > 0)
|
|
812
|
+
self.assertEqual(3, proto.nbytes)
|
|
813
|
+
|
|
814
|
+
# close connection
|
|
815
|
+
proto.transport.close()
|
|
816
|
+
self.loop.run_until_complete(proto.done)
|
|
817
|
+
self.assertEqual('CLOSED', proto.state)
|
|
818
|
+
|
|
819
|
+
# the client socket must be closed after to avoid ECONNRESET upon
|
|
820
|
+
# recv()/send() on the serving socket
|
|
821
|
+
client.close()
|
|
822
|
+
|
|
823
|
+
# stop serving
|
|
824
|
+
server.close()
|
|
825
|
+
|
|
826
|
+
@unittest.skipIf(ssl is None, 'No ssl module')
|
|
827
|
+
@unittest.skipUnless(HAS_SNI, 'No SNI support in ssl module')
|
|
828
|
+
def test_create_server_ssl_verify_failed(self):
|
|
829
|
+
proto = MyProto(loop=self.loop)
|
|
830
|
+
server, host, port = self._make_ssl_server(
|
|
831
|
+
lambda: proto, SIGNED_CERTFILE)
|
|
832
|
+
|
|
833
|
+
sslcontext_client = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
|
834
|
+
sslcontext_client.options |= ssl.OP_NO_SSLv2
|
|
835
|
+
sslcontext_client.verify_mode = ssl.CERT_REQUIRED
|
|
836
|
+
if hasattr(sslcontext_client, 'check_hostname'):
|
|
837
|
+
sslcontext_client.check_hostname = True
|
|
838
|
+
|
|
839
|
+
# no CA loaded
|
|
840
|
+
f_c = self.loop.create_connection(MyProto, host, port,
|
|
841
|
+
ssl=sslcontext_client)
|
|
842
|
+
with test_utils.disable_logger():
|
|
843
|
+
with self.assertRaisesRegex(ssl.SSLError,
|
|
844
|
+
'certificate verify failed '):
|
|
845
|
+
self.loop.run_until_complete(f_c)
|
|
846
|
+
|
|
847
|
+
# close connection
|
|
848
|
+
self.assertIsNone(proto.transport)
|
|
849
|
+
server.close()
|
|
850
|
+
|
|
851
|
+
@unittest.skipIf(ssl is None, 'No ssl module')
|
|
852
|
+
@unittest.skipUnless(HAS_SNI, 'No SNI support in ssl module')
|
|
853
|
+
@unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'No UNIX Sockets')
|
|
854
|
+
def test_create_unix_server_ssl_verify_failed(self):
|
|
855
|
+
proto = MyProto(loop=self.loop)
|
|
856
|
+
server, path = self._make_ssl_unix_server(
|
|
857
|
+
lambda: proto, SIGNED_CERTFILE)
|
|
858
|
+
|
|
859
|
+
sslcontext_client = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
|
860
|
+
sslcontext_client.options |= ssl.OP_NO_SSLv2
|
|
861
|
+
sslcontext_client.verify_mode = ssl.CERT_REQUIRED
|
|
862
|
+
if hasattr(sslcontext_client, 'check_hostname'):
|
|
863
|
+
sslcontext_client.check_hostname = True
|
|
864
|
+
|
|
865
|
+
# no CA loaded
|
|
866
|
+
f_c = self.loop.create_unix_connection(MyProto, path,
|
|
867
|
+
ssl=sslcontext_client,
|
|
868
|
+
server_hostname='invalid')
|
|
869
|
+
with test_utils.disable_logger():
|
|
870
|
+
with self.assertRaisesRegex(ssl.SSLError,
|
|
871
|
+
'certificate verify failed '):
|
|
872
|
+
self.loop.run_until_complete(f_c)
|
|
873
|
+
|
|
874
|
+
# close connection
|
|
875
|
+
self.assertIsNone(proto.transport)
|
|
876
|
+
server.close()
|
|
877
|
+
|
|
878
|
+
@unittest.skipIf(ssl is None, 'No ssl module')
|
|
879
|
+
@unittest.skipUnless(HAS_SNI, 'No SNI support in ssl module')
|
|
880
|
+
def test_create_server_ssl_match_failed(self):
|
|
881
|
+
proto = MyProto(loop=self.loop)
|
|
882
|
+
server, host, port = self._make_ssl_server(
|
|
883
|
+
lambda: proto, SIGNED_CERTFILE)
|
|
884
|
+
|
|
885
|
+
sslcontext_client = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
|
886
|
+
sslcontext_client.options |= ssl.OP_NO_SSLv2
|
|
887
|
+
sslcontext_client.verify_mode = ssl.CERT_REQUIRED
|
|
888
|
+
sslcontext_client.load_verify_locations(
|
|
889
|
+
cafile=SIGNING_CA)
|
|
890
|
+
if hasattr(sslcontext_client, 'check_hostname'):
|
|
891
|
+
sslcontext_client.check_hostname = True
|
|
892
|
+
|
|
893
|
+
# incorrect server_hostname
|
|
894
|
+
f_c = self.loop.create_connection(MyProto, host, port,
|
|
895
|
+
ssl=sslcontext_client)
|
|
896
|
+
with test_utils.disable_logger():
|
|
897
|
+
with self.assertRaisesRegex(
|
|
898
|
+
ssl.CertificateError,
|
|
899
|
+
"hostname '127.0.0.1' doesn't match 'localhost'"):
|
|
900
|
+
self.loop.run_until_complete(f_c)
|
|
901
|
+
|
|
902
|
+
# close connection
|
|
903
|
+
proto.transport.close()
|
|
904
|
+
server.close()
|
|
905
|
+
|
|
906
|
+
@unittest.skipIf(ssl is None, 'No ssl module')
|
|
907
|
+
@unittest.skipUnless(HAS_SNI, 'No SNI support in ssl module')
|
|
908
|
+
@unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'No UNIX Sockets')
|
|
909
|
+
def test_create_unix_server_ssl_verified(self):
|
|
910
|
+
proto = MyProto(loop=self.loop)
|
|
911
|
+
server, path = self._make_ssl_unix_server(
|
|
912
|
+
lambda: proto, SIGNED_CERTFILE)
|
|
913
|
+
|
|
914
|
+
sslcontext_client = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
|
915
|
+
sslcontext_client.options |= ssl.OP_NO_SSLv2
|
|
916
|
+
sslcontext_client.verify_mode = ssl.CERT_REQUIRED
|
|
917
|
+
sslcontext_client.load_verify_locations(cafile=SIGNING_CA)
|
|
918
|
+
if hasattr(sslcontext_client, 'check_hostname'):
|
|
919
|
+
sslcontext_client.check_hostname = True
|
|
920
|
+
|
|
921
|
+
# Connection succeeds with correct CA and server hostname.
|
|
922
|
+
f_c = self.loop.create_unix_connection(MyProto, path,
|
|
923
|
+
ssl=sslcontext_client,
|
|
924
|
+
server_hostname='localhost')
|
|
925
|
+
client, pr = self.loop.run_until_complete(f_c)
|
|
926
|
+
|
|
927
|
+
# close connection
|
|
928
|
+
proto.transport.close()
|
|
929
|
+
client.close()
|
|
930
|
+
server.close()
|
|
931
|
+
|
|
932
|
+
@unittest.skipIf(ssl is None, 'No ssl module')
|
|
933
|
+
@unittest.skipUnless(HAS_SNI, 'No SNI support in ssl module')
|
|
934
|
+
def test_create_server_ssl_verified(self):
|
|
935
|
+
proto = MyProto(loop=self.loop)
|
|
936
|
+
server, host, port = self._make_ssl_server(
|
|
937
|
+
lambda: proto, SIGNED_CERTFILE)
|
|
938
|
+
|
|
939
|
+
sslcontext_client = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
|
940
|
+
sslcontext_client.options |= ssl.OP_NO_SSLv2
|
|
941
|
+
sslcontext_client.verify_mode = ssl.CERT_REQUIRED
|
|
942
|
+
sslcontext_client.load_verify_locations(cafile=SIGNING_CA)
|
|
943
|
+
if hasattr(sslcontext_client, 'check_hostname'):
|
|
944
|
+
sslcontext_client.check_hostname = True
|
|
945
|
+
|
|
946
|
+
# Connection succeeds with correct CA and server hostname.
|
|
947
|
+
f_c = self.loop.create_connection(MyProto, host, port,
|
|
948
|
+
ssl=sslcontext_client,
|
|
949
|
+
server_hostname='localhost')
|
|
950
|
+
client, pr = self.loop.run_until_complete(f_c)
|
|
951
|
+
|
|
952
|
+
# close connection
|
|
953
|
+
proto.transport.close()
|
|
954
|
+
client.close()
|
|
955
|
+
server.close()
|
|
956
|
+
|
|
957
|
+
def test_create_server_sock(self):
|
|
958
|
+
proto = asyncio.Future(loop=self.loop)
|
|
959
|
+
|
|
960
|
+
class TestMyProto(MyProto):
|
|
961
|
+
def connection_made(self, transport):
|
|
962
|
+
super().connection_made(transport)
|
|
963
|
+
proto.set_result(self)
|
|
964
|
+
|
|
965
|
+
sock_ob = socket.socket(type=socket.SOCK_STREAM)
|
|
966
|
+
sock_ob.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
|
967
|
+
sock_ob.bind(('0.0.0.0', 0))
|
|
968
|
+
|
|
969
|
+
f = self.loop.create_server(TestMyProto, sock=sock_ob)
|
|
970
|
+
server = self.loop.run_until_complete(f)
|
|
971
|
+
sock = server.sockets[0]
|
|
972
|
+
self.assertIs(sock, sock_ob)
|
|
973
|
+
|
|
974
|
+
host, port = sock.getsockname()
|
|
975
|
+
self.assertEqual(host, '0.0.0.0')
|
|
976
|
+
client = socket.socket()
|
|
977
|
+
client.connect(('127.0.0.1', port))
|
|
978
|
+
client.send(b'xxx')
|
|
979
|
+
client.close()
|
|
980
|
+
server.close()
|
|
981
|
+
|
|
982
|
+
def test_create_server_addr_in_use(self):
|
|
983
|
+
sock_ob = socket.socket(type=socket.SOCK_STREAM)
|
|
984
|
+
sock_ob.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
|
985
|
+
sock_ob.bind(('0.0.0.0', 0))
|
|
986
|
+
|
|
987
|
+
f = self.loop.create_server(MyProto, sock=sock_ob)
|
|
988
|
+
server = self.loop.run_until_complete(f)
|
|
989
|
+
sock = server.sockets[0]
|
|
990
|
+
host, port = sock.getsockname()
|
|
991
|
+
|
|
992
|
+
f = self.loop.create_server(MyProto, host=host, port=port)
|
|
993
|
+
with self.assertRaises(OSError) as cm:
|
|
994
|
+
self.loop.run_until_complete(f)
|
|
995
|
+
self.assertEqual(cm.exception.errno, errno.EADDRINUSE)
|
|
996
|
+
|
|
997
|
+
server.close()
|
|
998
|
+
|
|
999
|
+
@unittest.skipUnless(support.IPV6_ENABLED, 'IPv6 not supported or enabled')
|
|
1000
|
+
def test_create_server_dual_stack(self):
|
|
1001
|
+
f_proto = asyncio.Future(loop=self.loop)
|
|
1002
|
+
|
|
1003
|
+
class TestMyProto(MyProto):
|
|
1004
|
+
def connection_made(self, transport):
|
|
1005
|
+
super().connection_made(transport)
|
|
1006
|
+
f_proto.set_result(self)
|
|
1007
|
+
|
|
1008
|
+
try_count = 0
|
|
1009
|
+
while True:
|
|
1010
|
+
try:
|
|
1011
|
+
port = support.find_unused_port()
|
|
1012
|
+
f = self.loop.create_server(TestMyProto, host=None, port=port)
|
|
1013
|
+
server = self.loop.run_until_complete(f)
|
|
1014
|
+
except OSError as ex:
|
|
1015
|
+
if ex.errno == errno.EADDRINUSE:
|
|
1016
|
+
try_count += 1
|
|
1017
|
+
self.assertGreaterEqual(5, try_count)
|
|
1018
|
+
continue
|
|
1019
|
+
else:
|
|
1020
|
+
raise
|
|
1021
|
+
else:
|
|
1022
|
+
break
|
|
1023
|
+
client = socket.socket()
|
|
1024
|
+
client.connect(('127.0.0.1', port))
|
|
1025
|
+
client.send(b'xxx')
|
|
1026
|
+
proto = self.loop.run_until_complete(f_proto)
|
|
1027
|
+
proto.transport.close()
|
|
1028
|
+
client.close()
|
|
1029
|
+
|
|
1030
|
+
f_proto = asyncio.Future(loop=self.loop)
|
|
1031
|
+
client = socket.socket(socket.AF_INET6)
|
|
1032
|
+
client.connect(('::1', port))
|
|
1033
|
+
client.send(b'xxx')
|
|
1034
|
+
proto = self.loop.run_until_complete(f_proto)
|
|
1035
|
+
proto.transport.close()
|
|
1036
|
+
client.close()
|
|
1037
|
+
|
|
1038
|
+
server.close()
|
|
1039
|
+
|
|
1040
|
+
def test_server_close(self):
|
|
1041
|
+
f = self.loop.create_server(MyProto, '0.0.0.0', 0)
|
|
1042
|
+
server = self.loop.run_until_complete(f)
|
|
1043
|
+
sock = server.sockets[0]
|
|
1044
|
+
host, port = sock.getsockname()
|
|
1045
|
+
|
|
1046
|
+
client = socket.socket()
|
|
1047
|
+
client.connect(('127.0.0.1', port))
|
|
1048
|
+
client.send(b'xxx')
|
|
1049
|
+
client.close()
|
|
1050
|
+
|
|
1051
|
+
server.close()
|
|
1052
|
+
|
|
1053
|
+
client = socket.socket()
|
|
1054
|
+
self.assertRaises(
|
|
1055
|
+
ConnectionRefusedError, client.connect, ('127.0.0.1', port))
|
|
1056
|
+
client.close()
|
|
1057
|
+
|
|
1058
|
+
def test_create_datagram_endpoint(self):
|
|
1059
|
+
class TestMyDatagramProto(MyDatagramProto):
|
|
1060
|
+
def __init__(inner_self):
|
|
1061
|
+
super().__init__(loop=self.loop)
|
|
1062
|
+
|
|
1063
|
+
def datagram_received(self, data, addr):
|
|
1064
|
+
super().datagram_received(data, addr)
|
|
1065
|
+
self.transport.sendto(b'resp:'+data, addr)
|
|
1066
|
+
|
|
1067
|
+
coro = self.loop.create_datagram_endpoint(
|
|
1068
|
+
TestMyDatagramProto, local_addr=('127.0.0.1', 0))
|
|
1069
|
+
s_transport, server = self.loop.run_until_complete(coro)
|
|
1070
|
+
host, port = s_transport.get_extra_info('sockname')
|
|
1071
|
+
|
|
1072
|
+
self.assertIsInstance(s_transport, asyncio.Transport)
|
|
1073
|
+
self.assertIsInstance(server, TestMyDatagramProto)
|
|
1074
|
+
self.assertEqual('INITIALIZED', server.state)
|
|
1075
|
+
self.assertIs(server.transport, s_transport)
|
|
1076
|
+
|
|
1077
|
+
coro = self.loop.create_datagram_endpoint(
|
|
1078
|
+
lambda: MyDatagramProto(loop=self.loop),
|
|
1079
|
+
remote_addr=(host, port))
|
|
1080
|
+
transport, client = self.loop.run_until_complete(coro)
|
|
1081
|
+
|
|
1082
|
+
self.assertIsInstance(transport, asyncio.Transport)
|
|
1083
|
+
self.assertIsInstance(client, MyDatagramProto)
|
|
1084
|
+
self.assertEqual('INITIALIZED', client.state)
|
|
1085
|
+
self.assertIs(client.transport, transport)
|
|
1086
|
+
|
|
1087
|
+
transport.sendto(b'xxx')
|
|
1088
|
+
test_utils.run_until(self.loop, lambda: server.nbytes)
|
|
1089
|
+
self.assertEqual(3, server.nbytes)
|
|
1090
|
+
test_utils.run_until(self.loop, lambda: client.nbytes)
|
|
1091
|
+
|
|
1092
|
+
# received
|
|
1093
|
+
self.assertEqual(8, client.nbytes)
|
|
1094
|
+
|
|
1095
|
+
# extra info is available
|
|
1096
|
+
self.assertIsNotNone(transport.get_extra_info('sockname'))
|
|
1097
|
+
|
|
1098
|
+
# close connection
|
|
1099
|
+
transport.close()
|
|
1100
|
+
self.loop.run_until_complete(client.done)
|
|
1101
|
+
self.assertEqual('CLOSED', client.state)
|
|
1102
|
+
server.transport.close()
|
|
1103
|
+
|
|
1104
|
+
def test_internal_fds(self):
|
|
1105
|
+
loop = self.create_event_loop()
|
|
1106
|
+
if not isinstance(loop, selector_events.BaseSelectorEventLoop):
|
|
1107
|
+
loop.close()
|
|
1108
|
+
self.skipTest('loop is not a BaseSelectorEventLoop')
|
|
1109
|
+
|
|
1110
|
+
self.assertEqual(1, loop._internal_fds)
|
|
1111
|
+
loop.close()
|
|
1112
|
+
self.assertEqual(0, loop._internal_fds)
|
|
1113
|
+
self.assertIsNone(loop._csock)
|
|
1114
|
+
self.assertIsNone(loop._ssock)
|
|
1115
|
+
|
|
1116
|
+
@unittest.skipUnless(sys.platform != 'win32',
|
|
1117
|
+
"Don't support pipes for Windows")
|
|
1118
|
+
def test_read_pipe(self):
|
|
1119
|
+
proto = MyReadPipeProto(loop=self.loop)
|
|
1120
|
+
|
|
1121
|
+
rpipe, wpipe = os.pipe()
|
|
1122
|
+
pipeobj = io.open(rpipe, 'rb', 1024)
|
|
1123
|
+
|
|
1124
|
+
@asyncio.coroutine
|
|
1125
|
+
def connect():
|
|
1126
|
+
t, p = yield from self.loop.connect_read_pipe(
|
|
1127
|
+
lambda: proto, pipeobj)
|
|
1128
|
+
self.assertIs(p, proto)
|
|
1129
|
+
self.assertIs(t, proto.transport)
|
|
1130
|
+
self.assertEqual(['INITIAL', 'CONNECTED'], proto.state)
|
|
1131
|
+
self.assertEqual(0, proto.nbytes)
|
|
1132
|
+
|
|
1133
|
+
self.loop.run_until_complete(connect())
|
|
1134
|
+
|
|
1135
|
+
os.write(wpipe, b'1')
|
|
1136
|
+
test_utils.run_until(self.loop, lambda: proto.nbytes >= 1)
|
|
1137
|
+
self.assertEqual(1, proto.nbytes)
|
|
1138
|
+
|
|
1139
|
+
os.write(wpipe, b'2345')
|
|
1140
|
+
test_utils.run_until(self.loop, lambda: proto.nbytes >= 5)
|
|
1141
|
+
self.assertEqual(['INITIAL', 'CONNECTED'], proto.state)
|
|
1142
|
+
self.assertEqual(5, proto.nbytes)
|
|
1143
|
+
|
|
1144
|
+
os.close(wpipe)
|
|
1145
|
+
self.loop.run_until_complete(proto.done)
|
|
1146
|
+
self.assertEqual(
|
|
1147
|
+
['INITIAL', 'CONNECTED', 'EOF', 'CLOSED'], proto.state)
|
|
1148
|
+
# extra info is available
|
|
1149
|
+
self.assertIsNotNone(proto.transport.get_extra_info('pipe'))
|
|
1150
|
+
|
|
1151
|
+
@unittest.skipUnless(sys.platform != 'win32',
|
|
1152
|
+
"Don't support pipes for Windows")
|
|
1153
|
+
# select, poll and kqueue don't support character devices (PTY) on Mac OS X
|
|
1154
|
+
# older than 10.6 (Snow Leopard)
|
|
1155
|
+
@support.requires_mac_ver(10, 6)
|
|
1156
|
+
# Issue #20495: The test hangs on FreeBSD 7.2 but pass on FreeBSD 9
|
|
1157
|
+
@support.requires_freebsd_version(8)
|
|
1158
|
+
def test_read_pty_output(self):
|
|
1159
|
+
proto = MyReadPipeProto(loop=self.loop)
|
|
1160
|
+
|
|
1161
|
+
master, slave = os.openpty()
|
|
1162
|
+
master_read_obj = io.open(master, 'rb', 0)
|
|
1163
|
+
|
|
1164
|
+
@asyncio.coroutine
|
|
1165
|
+
def connect():
|
|
1166
|
+
t, p = yield from self.loop.connect_read_pipe(lambda: proto,
|
|
1167
|
+
master_read_obj)
|
|
1168
|
+
self.assertIs(p, proto)
|
|
1169
|
+
self.assertIs(t, proto.transport)
|
|
1170
|
+
self.assertEqual(['INITIAL', 'CONNECTED'], proto.state)
|
|
1171
|
+
self.assertEqual(0, proto.nbytes)
|
|
1172
|
+
|
|
1173
|
+
self.loop.run_until_complete(connect())
|
|
1174
|
+
|
|
1175
|
+
os.write(slave, b'1')
|
|
1176
|
+
test_utils.run_until(self.loop, lambda: proto.nbytes)
|
|
1177
|
+
self.assertEqual(1, proto.nbytes)
|
|
1178
|
+
|
|
1179
|
+
os.write(slave, b'2345')
|
|
1180
|
+
test_utils.run_until(self.loop, lambda: proto.nbytes >= 5)
|
|
1181
|
+
self.assertEqual(['INITIAL', 'CONNECTED'], proto.state)
|
|
1182
|
+
self.assertEqual(5, proto.nbytes)
|
|
1183
|
+
|
|
1184
|
+
os.close(slave)
|
|
1185
|
+
self.loop.run_until_complete(proto.done)
|
|
1186
|
+
self.assertEqual(
|
|
1187
|
+
['INITIAL', 'CONNECTED', 'EOF', 'CLOSED'], proto.state)
|
|
1188
|
+
# extra info is available
|
|
1189
|
+
self.assertIsNotNone(proto.transport.get_extra_info('pipe'))
|
|
1190
|
+
|
|
1191
|
+
@unittest.skipUnless(sys.platform != 'win32',
|
|
1192
|
+
"Don't support pipes for Windows")
|
|
1193
|
+
def test_write_pipe(self):
|
|
1194
|
+
rpipe, wpipe = os.pipe()
|
|
1195
|
+
pipeobj = io.open(wpipe, 'wb', 1024)
|
|
1196
|
+
|
|
1197
|
+
proto = MyWritePipeProto(loop=self.loop)
|
|
1198
|
+
connect = self.loop.connect_write_pipe(lambda: proto, pipeobj)
|
|
1199
|
+
transport, p = self.loop.run_until_complete(connect)
|
|
1200
|
+
self.assertIs(p, proto)
|
|
1201
|
+
self.assertIs(transport, proto.transport)
|
|
1202
|
+
self.assertEqual('CONNECTED', proto.state)
|
|
1203
|
+
|
|
1204
|
+
transport.write(b'1')
|
|
1205
|
+
|
|
1206
|
+
data = bytearray()
|
|
1207
|
+
def reader(data):
|
|
1208
|
+
chunk = os.read(rpipe, 1024)
|
|
1209
|
+
data += chunk
|
|
1210
|
+
return len(data)
|
|
1211
|
+
|
|
1212
|
+
test_utils.run_until(self.loop, lambda: reader(data) >= 1)
|
|
1213
|
+
self.assertEqual(b'1', data)
|
|
1214
|
+
|
|
1215
|
+
transport.write(b'2345')
|
|
1216
|
+
test_utils.run_until(self.loop, lambda: reader(data) >= 5)
|
|
1217
|
+
self.assertEqual(b'12345', data)
|
|
1218
|
+
self.assertEqual('CONNECTED', proto.state)
|
|
1219
|
+
|
|
1220
|
+
os.close(rpipe)
|
|
1221
|
+
|
|
1222
|
+
# extra info is available
|
|
1223
|
+
self.assertIsNotNone(proto.transport.get_extra_info('pipe'))
|
|
1224
|
+
|
|
1225
|
+
# close connection
|
|
1226
|
+
proto.transport.close()
|
|
1227
|
+
self.loop.run_until_complete(proto.done)
|
|
1228
|
+
self.assertEqual('CLOSED', proto.state)
|
|
1229
|
+
|
|
1230
|
+
@unittest.skipUnless(sys.platform != 'win32',
|
|
1231
|
+
"Don't support pipes for Windows")
|
|
1232
|
+
def test_write_pipe_disconnect_on_close(self):
|
|
1233
|
+
rsock, wsock = test_utils.socketpair()
|
|
1234
|
+
rsock.setblocking(False)
|
|
1235
|
+
pipeobj = io.open(wsock.detach(), 'wb', 1024)
|
|
1236
|
+
|
|
1237
|
+
proto = MyWritePipeProto(loop=self.loop)
|
|
1238
|
+
connect = self.loop.connect_write_pipe(lambda: proto, pipeobj)
|
|
1239
|
+
transport, p = self.loop.run_until_complete(connect)
|
|
1240
|
+
self.assertIs(p, proto)
|
|
1241
|
+
self.assertIs(transport, proto.transport)
|
|
1242
|
+
self.assertEqual('CONNECTED', proto.state)
|
|
1243
|
+
|
|
1244
|
+
transport.write(b'1')
|
|
1245
|
+
data = self.loop.run_until_complete(self.loop.sock_recv(rsock, 1024))
|
|
1246
|
+
self.assertEqual(b'1', data)
|
|
1247
|
+
|
|
1248
|
+
rsock.close()
|
|
1249
|
+
|
|
1250
|
+
self.loop.run_until_complete(proto.done)
|
|
1251
|
+
self.assertEqual('CLOSED', proto.state)
|
|
1252
|
+
|
|
1253
|
+
@unittest.skipUnless(sys.platform != 'win32',
|
|
1254
|
+
"Don't support pipes for Windows")
|
|
1255
|
+
# select, poll and kqueue don't support character devices (PTY) on Mac OS X
|
|
1256
|
+
# older than 10.6 (Snow Leopard)
|
|
1257
|
+
@support.requires_mac_ver(10, 6)
|
|
1258
|
+
def test_write_pty(self):
|
|
1259
|
+
master, slave = os.openpty()
|
|
1260
|
+
slave_write_obj = io.open(slave, 'wb', 0)
|
|
1261
|
+
|
|
1262
|
+
proto = MyWritePipeProto(loop=self.loop)
|
|
1263
|
+
connect = self.loop.connect_write_pipe(lambda: proto, slave_write_obj)
|
|
1264
|
+
transport, p = self.loop.run_until_complete(connect)
|
|
1265
|
+
self.assertIs(p, proto)
|
|
1266
|
+
self.assertIs(transport, proto.transport)
|
|
1267
|
+
self.assertEqual('CONNECTED', proto.state)
|
|
1268
|
+
|
|
1269
|
+
transport.write(b'1')
|
|
1270
|
+
|
|
1271
|
+
data = bytearray()
|
|
1272
|
+
def reader(data):
|
|
1273
|
+
chunk = os.read(master, 1024)
|
|
1274
|
+
data += chunk
|
|
1275
|
+
return len(data)
|
|
1276
|
+
|
|
1277
|
+
test_utils.run_until(self.loop, lambda: reader(data) >= 1,
|
|
1278
|
+
timeout=10)
|
|
1279
|
+
self.assertEqual(b'1', data)
|
|
1280
|
+
|
|
1281
|
+
transport.write(b'2345')
|
|
1282
|
+
test_utils.run_until(self.loop, lambda: reader(data) >= 5,
|
|
1283
|
+
timeout=10)
|
|
1284
|
+
self.assertEqual(b'12345', data)
|
|
1285
|
+
self.assertEqual('CONNECTED', proto.state)
|
|
1286
|
+
|
|
1287
|
+
os.close(master)
|
|
1288
|
+
|
|
1289
|
+
# extra info is available
|
|
1290
|
+
self.assertIsNotNone(proto.transport.get_extra_info('pipe'))
|
|
1291
|
+
|
|
1292
|
+
# close connection
|
|
1293
|
+
proto.transport.close()
|
|
1294
|
+
self.loop.run_until_complete(proto.done)
|
|
1295
|
+
self.assertEqual('CLOSED', proto.state)
|
|
1296
|
+
|
|
1297
|
+
def test_prompt_cancellation(self):
|
|
1298
|
+
r, w = test_utils.socketpair()
|
|
1299
|
+
r.setblocking(False)
|
|
1300
|
+
f = self.loop.sock_recv(r, 1)
|
|
1301
|
+
ov = getattr(f, 'ov', None)
|
|
1302
|
+
if ov is not None:
|
|
1303
|
+
self.assertTrue(ov.pending)
|
|
1304
|
+
|
|
1305
|
+
@asyncio.coroutine
|
|
1306
|
+
def main():
|
|
1307
|
+
try:
|
|
1308
|
+
self.loop.call_soon(f.cancel)
|
|
1309
|
+
yield from f
|
|
1310
|
+
except asyncio.CancelledError:
|
|
1311
|
+
res = 'cancelled'
|
|
1312
|
+
else:
|
|
1313
|
+
res = None
|
|
1314
|
+
finally:
|
|
1315
|
+
self.loop.stop()
|
|
1316
|
+
return res
|
|
1317
|
+
|
|
1318
|
+
start = time.monotonic()
|
|
1319
|
+
t = asyncio.Task(main(), loop=self.loop)
|
|
1320
|
+
self.loop.run_forever()
|
|
1321
|
+
elapsed = time.monotonic() - start
|
|
1322
|
+
|
|
1323
|
+
self.assertLess(elapsed, 0.1)
|
|
1324
|
+
self.assertEqual(t.result(), 'cancelled')
|
|
1325
|
+
self.assertRaises(asyncio.CancelledError, f.result)
|
|
1326
|
+
if ov is not None:
|
|
1327
|
+
self.assertFalse(ov.pending)
|
|
1328
|
+
self.loop._stop_serving(r)
|
|
1329
|
+
|
|
1330
|
+
r.close()
|
|
1331
|
+
w.close()
|
|
1332
|
+
|
|
1333
|
+
def test_timeout_rounding(self):
|
|
1334
|
+
def _run_once():
|
|
1335
|
+
self.loop._run_once_counter += 1
|
|
1336
|
+
orig_run_once()
|
|
1337
|
+
|
|
1338
|
+
orig_run_once = self.loop._run_once
|
|
1339
|
+
self.loop._run_once_counter = 0
|
|
1340
|
+
self.loop._run_once = _run_once
|
|
1341
|
+
|
|
1342
|
+
@asyncio.coroutine
|
|
1343
|
+
def wait():
|
|
1344
|
+
loop = self.loop
|
|
1345
|
+
yield from asyncio.sleep(1e-2, loop=loop)
|
|
1346
|
+
yield from asyncio.sleep(1e-4, loop=loop)
|
|
1347
|
+
yield from asyncio.sleep(1e-6, loop=loop)
|
|
1348
|
+
yield from asyncio.sleep(1e-8, loop=loop)
|
|
1349
|
+
yield from asyncio.sleep(1e-10, loop=loop)
|
|
1350
|
+
|
|
1351
|
+
self.loop.run_until_complete(wait())
|
|
1352
|
+
# The ideal number of call is 12, but on some platforms, the selector
|
|
1353
|
+
# may sleep at little bit less than timeout depending on the resolution
|
|
1354
|
+
# of the clock used by the kernel. Tolerate a few useless calls on
|
|
1355
|
+
# these platforms.
|
|
1356
|
+
self.assertLessEqual(self.loop._run_once_counter, 20,
|
|
1357
|
+
{'clock_resolution': self.loop._clock_resolution,
|
|
1358
|
+
'selector': self.loop._selector.__class__.__name__})
|
|
1359
|
+
|
|
1360
|
+
def test_sock_connect_address(self):
|
|
1361
|
+
addresses = [(socket.AF_INET, ('www.python.org', 80))]
|
|
1362
|
+
if support.IPV6_ENABLED:
|
|
1363
|
+
addresses.extend((
|
|
1364
|
+
(socket.AF_INET6, ('www.python.org', 80)),
|
|
1365
|
+
(socket.AF_INET6, ('www.python.org', 80, 0, 0)),
|
|
1366
|
+
))
|
|
1367
|
+
|
|
1368
|
+
for family, address in addresses:
|
|
1369
|
+
for sock_type in (socket.SOCK_STREAM, socket.SOCK_DGRAM):
|
|
1370
|
+
sock = socket.socket(family, sock_type)
|
|
1371
|
+
with sock:
|
|
1372
|
+
sock.setblocking(False)
|
|
1373
|
+
connect = self.loop.sock_connect(sock, address)
|
|
1374
|
+
with self.assertRaises(ValueError) as cm:
|
|
1375
|
+
self.loop.run_until_complete(connect)
|
|
1376
|
+
self.assertIn('address must be resolved',
|
|
1377
|
+
str(cm.exception))
|
|
1378
|
+
|
|
1379
|
+
def test_remove_fds_after_closing(self):
|
|
1380
|
+
loop = self.create_event_loop()
|
|
1381
|
+
callback = lambda: None
|
|
1382
|
+
r, w = test_utils.socketpair()
|
|
1383
|
+
self.addCleanup(r.close)
|
|
1384
|
+
self.addCleanup(w.close)
|
|
1385
|
+
loop.add_reader(r, callback)
|
|
1386
|
+
loop.add_writer(w, callback)
|
|
1387
|
+
loop.close()
|
|
1388
|
+
self.assertFalse(loop.remove_reader(r))
|
|
1389
|
+
self.assertFalse(loop.remove_writer(w))
|
|
1390
|
+
|
|
1391
|
+
def test_add_fds_after_closing(self):
|
|
1392
|
+
loop = self.create_event_loop()
|
|
1393
|
+
callback = lambda: None
|
|
1394
|
+
r, w = test_utils.socketpair()
|
|
1395
|
+
self.addCleanup(r.close)
|
|
1396
|
+
self.addCleanup(w.close)
|
|
1397
|
+
loop.close()
|
|
1398
|
+
with self.assertRaises(RuntimeError):
|
|
1399
|
+
loop.add_reader(r, callback)
|
|
1400
|
+
with self.assertRaises(RuntimeError):
|
|
1401
|
+
loop.add_writer(w, callback)
|
|
1402
|
+
|
|
1403
|
+
def test_close_running_event_loop(self):
|
|
1404
|
+
@asyncio.coroutine
|
|
1405
|
+
def close_loop(loop):
|
|
1406
|
+
self.loop.close()
|
|
1407
|
+
|
|
1408
|
+
coro = close_loop(self.loop)
|
|
1409
|
+
with self.assertRaises(RuntimeError):
|
|
1410
|
+
self.loop.run_until_complete(coro)
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
class SubprocessTestsMixin:
|
|
1414
|
+
|
|
1415
|
+
def check_terminated(self, returncode):
|
|
1416
|
+
if sys.platform == 'win32':
|
|
1417
|
+
self.assertIsInstance(returncode, int)
|
|
1418
|
+
# expect 1 but sometimes get 0
|
|
1419
|
+
else:
|
|
1420
|
+
self.assertEqual(-signal.SIGTERM, returncode)
|
|
1421
|
+
|
|
1422
|
+
def check_killed(self, returncode):
|
|
1423
|
+
if sys.platform == 'win32':
|
|
1424
|
+
self.assertIsInstance(returncode, int)
|
|
1425
|
+
# expect 1 but sometimes get 0
|
|
1426
|
+
else:
|
|
1427
|
+
self.assertEqual(-signal.SIGKILL, returncode)
|
|
1428
|
+
|
|
1429
|
+
def test_subprocess_exec(self):
|
|
1430
|
+
prog = os.path.join(os.path.dirname(__file__), 'echo.py')
|
|
1431
|
+
|
|
1432
|
+
connect = self.loop.subprocess_exec(
|
|
1433
|
+
functools.partial(MySubprocessProtocol, self.loop),
|
|
1434
|
+
sys.executable, prog)
|
|
1435
|
+
transp, proto = self.loop.run_until_complete(connect)
|
|
1436
|
+
self.assertIsInstance(proto, MySubprocessProtocol)
|
|
1437
|
+
self.loop.run_until_complete(proto.connected)
|
|
1438
|
+
self.assertEqual('CONNECTED', proto.state)
|
|
1439
|
+
|
|
1440
|
+
stdin = transp.get_pipe_transport(0)
|
|
1441
|
+
stdin.write(b'Python The Winner')
|
|
1442
|
+
self.loop.run_until_complete(proto.got_data[1].wait())
|
|
1443
|
+
transp.close()
|
|
1444
|
+
self.loop.run_until_complete(proto.completed)
|
|
1445
|
+
self.check_terminated(proto.returncode)
|
|
1446
|
+
self.assertEqual(b'Python The Winner', proto.data[1])
|
|
1447
|
+
|
|
1448
|
+
def test_subprocess_interactive(self):
|
|
1449
|
+
prog = os.path.join(os.path.dirname(__file__), 'echo.py')
|
|
1450
|
+
|
|
1451
|
+
connect = self.loop.subprocess_exec(
|
|
1452
|
+
functools.partial(MySubprocessProtocol, self.loop),
|
|
1453
|
+
sys.executable, prog)
|
|
1454
|
+
transp, proto = self.loop.run_until_complete(connect)
|
|
1455
|
+
self.assertIsInstance(proto, MySubprocessProtocol)
|
|
1456
|
+
self.loop.run_until_complete(proto.connected)
|
|
1457
|
+
self.assertEqual('CONNECTED', proto.state)
|
|
1458
|
+
|
|
1459
|
+
try:
|
|
1460
|
+
stdin = transp.get_pipe_transport(0)
|
|
1461
|
+
stdin.write(b'Python ')
|
|
1462
|
+
self.loop.run_until_complete(proto.got_data[1].wait())
|
|
1463
|
+
proto.got_data[1].clear()
|
|
1464
|
+
self.assertEqual(b'Python ', proto.data[1])
|
|
1465
|
+
|
|
1466
|
+
stdin.write(b'The Winner')
|
|
1467
|
+
self.loop.run_until_complete(proto.got_data[1].wait())
|
|
1468
|
+
self.assertEqual(b'Python The Winner', proto.data[1])
|
|
1469
|
+
finally:
|
|
1470
|
+
transp.close()
|
|
1471
|
+
|
|
1472
|
+
self.loop.run_until_complete(proto.completed)
|
|
1473
|
+
self.check_terminated(proto.returncode)
|
|
1474
|
+
|
|
1475
|
+
def test_subprocess_shell(self):
|
|
1476
|
+
connect = self.loop.subprocess_shell(
|
|
1477
|
+
functools.partial(MySubprocessProtocol, self.loop),
|
|
1478
|
+
'echo Python')
|
|
1479
|
+
transp, proto = self.loop.run_until_complete(connect)
|
|
1480
|
+
self.assertIsInstance(proto, MySubprocessProtocol)
|
|
1481
|
+
self.loop.run_until_complete(proto.connected)
|
|
1482
|
+
|
|
1483
|
+
transp.get_pipe_transport(0).close()
|
|
1484
|
+
self.loop.run_until_complete(proto.completed)
|
|
1485
|
+
self.assertEqual(0, proto.returncode)
|
|
1486
|
+
self.assertTrue(all(f.done() for f in proto.disconnects.values()))
|
|
1487
|
+
self.assertEqual(proto.data[1].rstrip(b'\r\n'), b'Python')
|
|
1488
|
+
self.assertEqual(proto.data[2], b'')
|
|
1489
|
+
|
|
1490
|
+
def test_subprocess_exitcode(self):
|
|
1491
|
+
connect = self.loop.subprocess_shell(
|
|
1492
|
+
functools.partial(MySubprocessProtocol, self.loop),
|
|
1493
|
+
'exit 7', stdin=None, stdout=None, stderr=None)
|
|
1494
|
+
transp, proto = self.loop.run_until_complete(connect)
|
|
1495
|
+
self.assertIsInstance(proto, MySubprocessProtocol)
|
|
1496
|
+
self.loop.run_until_complete(proto.completed)
|
|
1497
|
+
self.assertEqual(7, proto.returncode)
|
|
1498
|
+
|
|
1499
|
+
def test_subprocess_close_after_finish(self):
|
|
1500
|
+
connect = self.loop.subprocess_shell(
|
|
1501
|
+
functools.partial(MySubprocessProtocol, self.loop),
|
|
1502
|
+
'exit 7', stdin=None, stdout=None, stderr=None)
|
|
1503
|
+
transp, proto = self.loop.run_until_complete(connect)
|
|
1504
|
+
self.assertIsInstance(proto, MySubprocessProtocol)
|
|
1505
|
+
self.assertIsNone(transp.get_pipe_transport(0))
|
|
1506
|
+
self.assertIsNone(transp.get_pipe_transport(1))
|
|
1507
|
+
self.assertIsNone(transp.get_pipe_transport(2))
|
|
1508
|
+
self.loop.run_until_complete(proto.completed)
|
|
1509
|
+
self.assertEqual(7, proto.returncode)
|
|
1510
|
+
self.assertIsNone(transp.close())
|
|
1511
|
+
|
|
1512
|
+
def test_subprocess_kill(self):
|
|
1513
|
+
prog = os.path.join(os.path.dirname(__file__), 'echo.py')
|
|
1514
|
+
|
|
1515
|
+
connect = self.loop.subprocess_exec(
|
|
1516
|
+
functools.partial(MySubprocessProtocol, self.loop),
|
|
1517
|
+
sys.executable, prog)
|
|
1518
|
+
transp, proto = self.loop.run_until_complete(connect)
|
|
1519
|
+
self.assertIsInstance(proto, MySubprocessProtocol)
|
|
1520
|
+
self.loop.run_until_complete(proto.connected)
|
|
1521
|
+
|
|
1522
|
+
transp.kill()
|
|
1523
|
+
self.loop.run_until_complete(proto.completed)
|
|
1524
|
+
self.check_killed(proto.returncode)
|
|
1525
|
+
|
|
1526
|
+
def test_subprocess_terminate(self):
|
|
1527
|
+
prog = os.path.join(os.path.dirname(__file__), 'echo.py')
|
|
1528
|
+
|
|
1529
|
+
connect = self.loop.subprocess_exec(
|
|
1530
|
+
functools.partial(MySubprocessProtocol, self.loop),
|
|
1531
|
+
sys.executable, prog)
|
|
1532
|
+
transp, proto = self.loop.run_until_complete(connect)
|
|
1533
|
+
self.assertIsInstance(proto, MySubprocessProtocol)
|
|
1534
|
+
self.loop.run_until_complete(proto.connected)
|
|
1535
|
+
|
|
1536
|
+
transp.terminate()
|
|
1537
|
+
self.loop.run_until_complete(proto.completed)
|
|
1538
|
+
self.check_terminated(proto.returncode)
|
|
1539
|
+
|
|
1540
|
+
@unittest.skipIf(sys.platform == 'win32', "Don't have SIGHUP")
|
|
1541
|
+
def test_subprocess_send_signal(self):
|
|
1542
|
+
prog = os.path.join(os.path.dirname(__file__), 'echo.py')
|
|
1543
|
+
|
|
1544
|
+
connect = self.loop.subprocess_exec(
|
|
1545
|
+
functools.partial(MySubprocessProtocol, self.loop),
|
|
1546
|
+
sys.executable, prog)
|
|
1547
|
+
transp, proto = self.loop.run_until_complete(connect)
|
|
1548
|
+
self.assertIsInstance(proto, MySubprocessProtocol)
|
|
1549
|
+
self.loop.run_until_complete(proto.connected)
|
|
1550
|
+
|
|
1551
|
+
transp.send_signal(signal.SIGHUP)
|
|
1552
|
+
self.loop.run_until_complete(proto.completed)
|
|
1553
|
+
self.assertEqual(-signal.SIGHUP, proto.returncode)
|
|
1554
|
+
|
|
1555
|
+
def test_subprocess_stderr(self):
|
|
1556
|
+
prog = os.path.join(os.path.dirname(__file__), 'echo2.py')
|
|
1557
|
+
|
|
1558
|
+
connect = self.loop.subprocess_exec(
|
|
1559
|
+
functools.partial(MySubprocessProtocol, self.loop),
|
|
1560
|
+
sys.executable, prog)
|
|
1561
|
+
transp, proto = self.loop.run_until_complete(connect)
|
|
1562
|
+
self.assertIsInstance(proto, MySubprocessProtocol)
|
|
1563
|
+
self.loop.run_until_complete(proto.connected)
|
|
1564
|
+
|
|
1565
|
+
stdin = transp.get_pipe_transport(0)
|
|
1566
|
+
stdin.write(b'test')
|
|
1567
|
+
|
|
1568
|
+
self.loop.run_until_complete(proto.completed)
|
|
1569
|
+
|
|
1570
|
+
transp.close()
|
|
1571
|
+
self.assertEqual(b'OUT:test', proto.data[1])
|
|
1572
|
+
self.assertTrue(proto.data[2].startswith(b'ERR:test'), proto.data[2])
|
|
1573
|
+
self.assertEqual(0, proto.returncode)
|
|
1574
|
+
|
|
1575
|
+
def test_subprocess_stderr_redirect_to_stdout(self):
|
|
1576
|
+
prog = os.path.join(os.path.dirname(__file__), 'echo2.py')
|
|
1577
|
+
|
|
1578
|
+
connect = self.loop.subprocess_exec(
|
|
1579
|
+
functools.partial(MySubprocessProtocol, self.loop),
|
|
1580
|
+
sys.executable, prog, stderr=subprocess.STDOUT)
|
|
1581
|
+
transp, proto = self.loop.run_until_complete(connect)
|
|
1582
|
+
self.assertIsInstance(proto, MySubprocessProtocol)
|
|
1583
|
+
self.loop.run_until_complete(proto.connected)
|
|
1584
|
+
|
|
1585
|
+
stdin = transp.get_pipe_transport(0)
|
|
1586
|
+
self.assertIsNotNone(transp.get_pipe_transport(1))
|
|
1587
|
+
self.assertIsNone(transp.get_pipe_transport(2))
|
|
1588
|
+
|
|
1589
|
+
stdin.write(b'test')
|
|
1590
|
+
self.loop.run_until_complete(proto.completed)
|
|
1591
|
+
self.assertTrue(proto.data[1].startswith(b'OUT:testERR:test'),
|
|
1592
|
+
proto.data[1])
|
|
1593
|
+
self.assertEqual(b'', proto.data[2])
|
|
1594
|
+
|
|
1595
|
+
transp.close()
|
|
1596
|
+
self.assertEqual(0, proto.returncode)
|
|
1597
|
+
|
|
1598
|
+
def test_subprocess_close_client_stream(self):
|
|
1599
|
+
prog = os.path.join(os.path.dirname(__file__), 'echo3.py')
|
|
1600
|
+
|
|
1601
|
+
connect = self.loop.subprocess_exec(
|
|
1602
|
+
functools.partial(MySubprocessProtocol, self.loop),
|
|
1603
|
+
sys.executable, prog)
|
|
1604
|
+
transp, proto = self.loop.run_until_complete(connect)
|
|
1605
|
+
self.assertIsInstance(proto, MySubprocessProtocol)
|
|
1606
|
+
self.loop.run_until_complete(proto.connected)
|
|
1607
|
+
|
|
1608
|
+
stdin = transp.get_pipe_transport(0)
|
|
1609
|
+
stdout = transp.get_pipe_transport(1)
|
|
1610
|
+
stdin.write(b'test')
|
|
1611
|
+
self.loop.run_until_complete(proto.got_data[1].wait())
|
|
1612
|
+
self.assertEqual(b'OUT:test', proto.data[1])
|
|
1613
|
+
|
|
1614
|
+
stdout.close()
|
|
1615
|
+
self.loop.run_until_complete(proto.disconnects[1])
|
|
1616
|
+
stdin.write(b'xxx')
|
|
1617
|
+
self.loop.run_until_complete(proto.got_data[2].wait())
|
|
1618
|
+
if sys.platform != 'win32':
|
|
1619
|
+
self.assertEqual(b'ERR:BrokenPipeError', proto.data[2])
|
|
1620
|
+
else:
|
|
1621
|
+
# After closing the read-end of a pipe, writing to the
|
|
1622
|
+
# write-end using os.write() fails with errno==EINVAL and
|
|
1623
|
+
# GetLastError()==ERROR_INVALID_NAME on Windows!?! (Using
|
|
1624
|
+
# WriteFile() we get ERROR_BROKEN_PIPE as expected.)
|
|
1625
|
+
self.assertEqual(b'ERR:OSError', proto.data[2])
|
|
1626
|
+
transp.close()
|
|
1627
|
+
self.loop.run_until_complete(proto.completed)
|
|
1628
|
+
self.check_terminated(proto.returncode)
|
|
1629
|
+
|
|
1630
|
+
def test_subprocess_wait_no_same_group(self):
|
|
1631
|
+
# start the new process in a new session
|
|
1632
|
+
connect = self.loop.subprocess_shell(
|
|
1633
|
+
functools.partial(MySubprocessProtocol, self.loop),
|
|
1634
|
+
'exit 7', stdin=None, stdout=None, stderr=None,
|
|
1635
|
+
start_new_session=True)
|
|
1636
|
+
_, proto = yield self.loop.run_until_complete(connect)
|
|
1637
|
+
self.assertIsInstance(proto, MySubprocessProtocol)
|
|
1638
|
+
self.loop.run_until_complete(proto.completed)
|
|
1639
|
+
self.assertEqual(7, proto.returncode)
|
|
1640
|
+
|
|
1641
|
+
def test_subprocess_exec_invalid_args(self):
|
|
1642
|
+
@asyncio.coroutine
|
|
1643
|
+
def connect(**kwds):
|
|
1644
|
+
yield from self.loop.subprocess_exec(
|
|
1645
|
+
asyncio.SubprocessProtocol,
|
|
1646
|
+
'pwd', **kwds)
|
|
1647
|
+
|
|
1648
|
+
with self.assertRaises(ValueError):
|
|
1649
|
+
self.loop.run_until_complete(connect(universal_newlines=True))
|
|
1650
|
+
with self.assertRaises(ValueError):
|
|
1651
|
+
self.loop.run_until_complete(connect(bufsize=4096))
|
|
1652
|
+
with self.assertRaises(ValueError):
|
|
1653
|
+
self.loop.run_until_complete(connect(shell=True))
|
|
1654
|
+
|
|
1655
|
+
def test_subprocess_shell_invalid_args(self):
|
|
1656
|
+
@asyncio.coroutine
|
|
1657
|
+
def connect(cmd=None, **kwds):
|
|
1658
|
+
if not cmd:
|
|
1659
|
+
cmd = 'pwd'
|
|
1660
|
+
yield from self.loop.subprocess_shell(
|
|
1661
|
+
asyncio.SubprocessProtocol,
|
|
1662
|
+
cmd, **kwds)
|
|
1663
|
+
|
|
1664
|
+
with self.assertRaises(ValueError):
|
|
1665
|
+
self.loop.run_until_complete(connect(['ls', '-l']))
|
|
1666
|
+
with self.assertRaises(ValueError):
|
|
1667
|
+
self.loop.run_until_complete(connect(universal_newlines=True))
|
|
1668
|
+
with self.assertRaises(ValueError):
|
|
1669
|
+
self.loop.run_until_complete(connect(bufsize=4096))
|
|
1670
|
+
with self.assertRaises(ValueError):
|
|
1671
|
+
self.loop.run_until_complete(connect(shell=False))
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
if sys.platform == 'win32':
|
|
1675
|
+
|
|
1676
|
+
class SelectEventLoopTests(EventLoopTestsMixin, test_utils.TestCase):
|
|
1677
|
+
|
|
1678
|
+
def create_event_loop(self):
|
|
1679
|
+
return asyncio.SelectorEventLoop()
|
|
1680
|
+
|
|
1681
|
+
class ProactorEventLoopTests(EventLoopTestsMixin,
|
|
1682
|
+
SubprocessTestsMixin,
|
|
1683
|
+
test_utils.TestCase):
|
|
1684
|
+
|
|
1685
|
+
def create_event_loop(self):
|
|
1686
|
+
return asyncio.ProactorEventLoop()
|
|
1687
|
+
|
|
1688
|
+
def test_create_ssl_connection(self):
|
|
1689
|
+
raise unittest.SkipTest("IocpEventLoop incompatible with SSL")
|
|
1690
|
+
|
|
1691
|
+
def test_create_server_ssl(self):
|
|
1692
|
+
raise unittest.SkipTest("IocpEventLoop incompatible with SSL")
|
|
1693
|
+
|
|
1694
|
+
def test_create_server_ssl_verify_failed(self):
|
|
1695
|
+
raise unittest.SkipTest("IocpEventLoop incompatible with SSL")
|
|
1696
|
+
|
|
1697
|
+
def test_create_server_ssl_match_failed(self):
|
|
1698
|
+
raise unittest.SkipTest("IocpEventLoop incompatible with SSL")
|
|
1699
|
+
|
|
1700
|
+
def test_create_server_ssl_verified(self):
|
|
1701
|
+
raise unittest.SkipTest("IocpEventLoop incompatible with SSL")
|
|
1702
|
+
|
|
1703
|
+
def test_reader_callback(self):
|
|
1704
|
+
raise unittest.SkipTest("IocpEventLoop does not have add_reader()")
|
|
1705
|
+
|
|
1706
|
+
def test_reader_callback_cancel(self):
|
|
1707
|
+
raise unittest.SkipTest("IocpEventLoop does not have add_reader()")
|
|
1708
|
+
|
|
1709
|
+
def test_writer_callback(self):
|
|
1710
|
+
raise unittest.SkipTest("IocpEventLoop does not have add_writer()")
|
|
1711
|
+
|
|
1712
|
+
def test_writer_callback_cancel(self):
|
|
1713
|
+
raise unittest.SkipTest("IocpEventLoop does not have add_writer()")
|
|
1714
|
+
|
|
1715
|
+
def test_create_datagram_endpoint(self):
|
|
1716
|
+
raise unittest.SkipTest(
|
|
1717
|
+
"IocpEventLoop does not have create_datagram_endpoint()")
|
|
1718
|
+
|
|
1719
|
+
def test_remove_fds_after_closing(self):
|
|
1720
|
+
raise unittest.SkipTest("IocpEventLoop does not have add_reader()")
|
|
1721
|
+
else:
|
|
1722
|
+
from asyncio import selectors
|
|
1723
|
+
|
|
1724
|
+
class UnixEventLoopTestsMixin(EventLoopTestsMixin):
|
|
1725
|
+
def setUp(self):
|
|
1726
|
+
super().setUp()
|
|
1727
|
+
watcher = asyncio.SafeChildWatcher()
|
|
1728
|
+
watcher.attach_loop(self.loop)
|
|
1729
|
+
asyncio.set_child_watcher(watcher)
|
|
1730
|
+
|
|
1731
|
+
def tearDown(self):
|
|
1732
|
+
asyncio.set_child_watcher(None)
|
|
1733
|
+
super().tearDown()
|
|
1734
|
+
|
|
1735
|
+
if hasattr(selectors, 'KqueueSelector'):
|
|
1736
|
+
class KqueueEventLoopTests(UnixEventLoopTestsMixin,
|
|
1737
|
+
SubprocessTestsMixin,
|
|
1738
|
+
test_utils.TestCase):
|
|
1739
|
+
|
|
1740
|
+
def create_event_loop(self):
|
|
1741
|
+
return asyncio.SelectorEventLoop(
|
|
1742
|
+
selectors.KqueueSelector())
|
|
1743
|
+
|
|
1744
|
+
# kqueue doesn't support character devices (PTY) on Mac OS X older
|
|
1745
|
+
# than 10.9 (Maverick)
|
|
1746
|
+
@support.requires_mac_ver(10, 9)
|
|
1747
|
+
# Issue #20667: KqueueEventLoopTests.test_read_pty_output()
|
|
1748
|
+
# hangs on OpenBSD 5.5
|
|
1749
|
+
@unittest.skipIf(sys.platform.startswith('openbsd'),
|
|
1750
|
+
'test hangs on OpenBSD')
|
|
1751
|
+
def test_read_pty_output(self):
|
|
1752
|
+
super().test_read_pty_output()
|
|
1753
|
+
|
|
1754
|
+
# kqueue doesn't support character devices (PTY) on Mac OS X older
|
|
1755
|
+
# than 10.9 (Maverick)
|
|
1756
|
+
@support.requires_mac_ver(10, 9)
|
|
1757
|
+
def test_write_pty(self):
|
|
1758
|
+
super().test_write_pty()
|
|
1759
|
+
|
|
1760
|
+
if hasattr(selectors, 'EpollSelector'):
|
|
1761
|
+
class EPollEventLoopTests(UnixEventLoopTestsMixin,
|
|
1762
|
+
SubprocessTestsMixin,
|
|
1763
|
+
test_utils.TestCase):
|
|
1764
|
+
|
|
1765
|
+
def create_event_loop(self):
|
|
1766
|
+
return asyncio.SelectorEventLoop(selectors.EpollSelector())
|
|
1767
|
+
|
|
1768
|
+
if hasattr(selectors, 'PollSelector'):
|
|
1769
|
+
class PollEventLoopTests(UnixEventLoopTestsMixin,
|
|
1770
|
+
SubprocessTestsMixin,
|
|
1771
|
+
test_utils.TestCase):
|
|
1772
|
+
|
|
1773
|
+
def create_event_loop(self):
|
|
1774
|
+
return asyncio.SelectorEventLoop(selectors.PollSelector())
|
|
1775
|
+
|
|
1776
|
+
# Should always exist.
|
|
1777
|
+
class SelectEventLoopTests(UnixEventLoopTestsMixin,
|
|
1778
|
+
SubprocessTestsMixin,
|
|
1779
|
+
test_utils.TestCase):
|
|
1780
|
+
|
|
1781
|
+
def create_event_loop(self):
|
|
1782
|
+
return asyncio.SelectorEventLoop(selectors.SelectSelector())
|
|
1783
|
+
|
|
1784
|
+
|
|
1785
|
+
def noop(*args):
|
|
1786
|
+
pass
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
class HandleTests(test_utils.TestCase):
|
|
1790
|
+
|
|
1791
|
+
def setUp(self):
|
|
1792
|
+
self.loop = mock.Mock()
|
|
1793
|
+
self.loop.get_debug.return_value = True
|
|
1794
|
+
|
|
1795
|
+
def test_handle(self):
|
|
1796
|
+
def callback(*args):
|
|
1797
|
+
return args
|
|
1798
|
+
|
|
1799
|
+
args = ()
|
|
1800
|
+
h = asyncio.Handle(callback, args, self.loop)
|
|
1801
|
+
self.assertIs(h._callback, callback)
|
|
1802
|
+
self.assertIs(h._args, args)
|
|
1803
|
+
self.assertFalse(h._cancelled)
|
|
1804
|
+
|
|
1805
|
+
h.cancel()
|
|
1806
|
+
self.assertTrue(h._cancelled)
|
|
1807
|
+
|
|
1808
|
+
def test_handle_from_handle(self):
|
|
1809
|
+
def callback(*args):
|
|
1810
|
+
return args
|
|
1811
|
+
h1 = asyncio.Handle(callback, (), loop=self.loop)
|
|
1812
|
+
self.assertRaises(
|
|
1813
|
+
AssertionError, asyncio.Handle, h1, (), self.loop)
|
|
1814
|
+
|
|
1815
|
+
def test_callback_with_exception(self):
|
|
1816
|
+
def callback():
|
|
1817
|
+
raise ValueError()
|
|
1818
|
+
|
|
1819
|
+
self.loop = mock.Mock()
|
|
1820
|
+
self.loop.call_exception_handler = mock.Mock()
|
|
1821
|
+
|
|
1822
|
+
h = asyncio.Handle(callback, (), self.loop)
|
|
1823
|
+
h._run()
|
|
1824
|
+
|
|
1825
|
+
self.loop.call_exception_handler.assert_called_with({
|
|
1826
|
+
'message': test_utils.MockPattern('Exception in callback.*'),
|
|
1827
|
+
'exception': mock.ANY,
|
|
1828
|
+
'handle': h,
|
|
1829
|
+
'source_traceback': h._source_traceback,
|
|
1830
|
+
})
|
|
1831
|
+
|
|
1832
|
+
def test_handle_weakref(self):
|
|
1833
|
+
wd = weakref.WeakValueDictionary()
|
|
1834
|
+
h = asyncio.Handle(lambda: None, (), self.loop)
|
|
1835
|
+
wd['h'] = h # Would fail without __weakref__ slot.
|
|
1836
|
+
|
|
1837
|
+
def test_handle_repr(self):
|
|
1838
|
+
self.loop.get_debug.return_value = False
|
|
1839
|
+
|
|
1840
|
+
# simple function
|
|
1841
|
+
h = asyncio.Handle(noop, (1, 2), self.loop)
|
|
1842
|
+
filename, lineno = test_utils.get_function_source(noop)
|
|
1843
|
+
self.assertEqual(repr(h),
|
|
1844
|
+
'<Handle noop(1, 2) at %s:%s>'
|
|
1845
|
+
% (filename, lineno))
|
|
1846
|
+
|
|
1847
|
+
# cancelled handle
|
|
1848
|
+
h.cancel()
|
|
1849
|
+
self.assertEqual(repr(h),
|
|
1850
|
+
'<Handle cancelled>')
|
|
1851
|
+
|
|
1852
|
+
# decorated function
|
|
1853
|
+
cb = asyncio.coroutine(noop)
|
|
1854
|
+
h = asyncio.Handle(cb, (), self.loop)
|
|
1855
|
+
self.assertEqual(repr(h),
|
|
1856
|
+
'<Handle noop() at %s:%s>'
|
|
1857
|
+
% (filename, lineno))
|
|
1858
|
+
|
|
1859
|
+
# partial function
|
|
1860
|
+
cb = functools.partial(noop, 1, 2)
|
|
1861
|
+
h = asyncio.Handle(cb, (3,), self.loop)
|
|
1862
|
+
regex = (r'^<Handle noop\(1, 2\)\(3\) at %s:%s>$'
|
|
1863
|
+
% (re.escape(filename), lineno))
|
|
1864
|
+
self.assertRegex(repr(h), regex)
|
|
1865
|
+
|
|
1866
|
+
# partial method
|
|
1867
|
+
if sys.version_info >= (3, 4):
|
|
1868
|
+
method = HandleTests.test_handle_repr
|
|
1869
|
+
cb = functools.partialmethod(method)
|
|
1870
|
+
filename, lineno = test_utils.get_function_source(method)
|
|
1871
|
+
h = asyncio.Handle(cb, (), self.loop)
|
|
1872
|
+
|
|
1873
|
+
cb_regex = r'<function HandleTests.test_handle_repr .*>'
|
|
1874
|
+
cb_regex = (r'functools.partialmethod\(%s, , \)\(\)' % cb_regex)
|
|
1875
|
+
regex = (r'^<Handle %s at %s:%s>$'
|
|
1876
|
+
% (cb_regex, re.escape(filename), lineno))
|
|
1877
|
+
self.assertRegex(repr(h), regex)
|
|
1878
|
+
|
|
1879
|
+
def test_handle_repr_debug(self):
|
|
1880
|
+
self.loop.get_debug.return_value = True
|
|
1881
|
+
|
|
1882
|
+
# simple function
|
|
1883
|
+
create_filename = __file__
|
|
1884
|
+
create_lineno = sys._getframe().f_lineno + 1
|
|
1885
|
+
h = asyncio.Handle(noop, (1, 2), self.loop)
|
|
1886
|
+
filename, lineno = test_utils.get_function_source(noop)
|
|
1887
|
+
self.assertEqual(repr(h),
|
|
1888
|
+
'<Handle noop(1, 2) at %s:%s created at %s:%s>'
|
|
1889
|
+
% (filename, lineno, create_filename, create_lineno))
|
|
1890
|
+
|
|
1891
|
+
# cancelled handle
|
|
1892
|
+
h.cancel()
|
|
1893
|
+
self.assertEqual(repr(h),
|
|
1894
|
+
'<Handle cancelled noop(1, 2) at %s:%s created at %s:%s>'
|
|
1895
|
+
% (filename, lineno, create_filename, create_lineno))
|
|
1896
|
+
|
|
1897
|
+
def test_handle_source_traceback(self):
|
|
1898
|
+
loop = asyncio.get_event_loop_policy().new_event_loop()
|
|
1899
|
+
loop.set_debug(True)
|
|
1900
|
+
self.set_event_loop(loop)
|
|
1901
|
+
|
|
1902
|
+
def check_source_traceback(h):
|
|
1903
|
+
lineno = sys._getframe(1).f_lineno - 1
|
|
1904
|
+
self.assertIsInstance(h._source_traceback, list)
|
|
1905
|
+
self.assertEqual(h._source_traceback[-1][:3],
|
|
1906
|
+
(__file__,
|
|
1907
|
+
lineno,
|
|
1908
|
+
'test_handle_source_traceback'))
|
|
1909
|
+
|
|
1910
|
+
# call_soon
|
|
1911
|
+
h = loop.call_soon(noop)
|
|
1912
|
+
check_source_traceback(h)
|
|
1913
|
+
|
|
1914
|
+
# call_soon_threadsafe
|
|
1915
|
+
h = loop.call_soon_threadsafe(noop)
|
|
1916
|
+
check_source_traceback(h)
|
|
1917
|
+
|
|
1918
|
+
# call_later
|
|
1919
|
+
h = loop.call_later(0, noop)
|
|
1920
|
+
check_source_traceback(h)
|
|
1921
|
+
|
|
1922
|
+
# call_at
|
|
1923
|
+
h = loop.call_later(0, noop)
|
|
1924
|
+
check_source_traceback(h)
|
|
1925
|
+
|
|
1926
|
+
|
|
1927
|
+
class TimerTests(unittest.TestCase):
|
|
1928
|
+
|
|
1929
|
+
def setUp(self):
|
|
1930
|
+
self.loop = mock.Mock()
|
|
1931
|
+
|
|
1932
|
+
def test_hash(self):
|
|
1933
|
+
when = time.monotonic()
|
|
1934
|
+
h = asyncio.TimerHandle(when, lambda: False, (),
|
|
1935
|
+
mock.Mock())
|
|
1936
|
+
self.assertEqual(hash(h), hash(when))
|
|
1937
|
+
|
|
1938
|
+
def test_timer(self):
|
|
1939
|
+
def callback(*args):
|
|
1940
|
+
return args
|
|
1941
|
+
|
|
1942
|
+
args = (1, 2, 3)
|
|
1943
|
+
when = time.monotonic()
|
|
1944
|
+
h = asyncio.TimerHandle(when, callback, args, mock.Mock())
|
|
1945
|
+
self.assertIs(h._callback, callback)
|
|
1946
|
+
self.assertIs(h._args, args)
|
|
1947
|
+
self.assertFalse(h._cancelled)
|
|
1948
|
+
|
|
1949
|
+
# cancel
|
|
1950
|
+
h.cancel()
|
|
1951
|
+
self.assertTrue(h._cancelled)
|
|
1952
|
+
self.assertIsNone(h._callback)
|
|
1953
|
+
self.assertIsNone(h._args)
|
|
1954
|
+
|
|
1955
|
+
# when cannot be None
|
|
1956
|
+
self.assertRaises(AssertionError,
|
|
1957
|
+
asyncio.TimerHandle, None, callback, args,
|
|
1958
|
+
self.loop)
|
|
1959
|
+
|
|
1960
|
+
def test_timer_repr(self):
|
|
1961
|
+
self.loop.get_debug.return_value = False
|
|
1962
|
+
|
|
1963
|
+
# simple function
|
|
1964
|
+
h = asyncio.TimerHandle(123, noop, (), self.loop)
|
|
1965
|
+
src = test_utils.get_function_source(noop)
|
|
1966
|
+
self.assertEqual(repr(h),
|
|
1967
|
+
'<TimerHandle when=123 noop() at %s:%s>' % src)
|
|
1968
|
+
|
|
1969
|
+
# cancelled handle
|
|
1970
|
+
h.cancel()
|
|
1971
|
+
self.assertEqual(repr(h),
|
|
1972
|
+
'<TimerHandle cancelled when=123>')
|
|
1973
|
+
|
|
1974
|
+
def test_timer_repr_debug(self):
|
|
1975
|
+
self.loop.get_debug.return_value = True
|
|
1976
|
+
|
|
1977
|
+
# simple function
|
|
1978
|
+
create_filename = __file__
|
|
1979
|
+
create_lineno = sys._getframe().f_lineno + 1
|
|
1980
|
+
h = asyncio.TimerHandle(123, noop, (), self.loop)
|
|
1981
|
+
filename, lineno = test_utils.get_function_source(noop)
|
|
1982
|
+
self.assertEqual(repr(h),
|
|
1983
|
+
'<TimerHandle when=123 noop() '
|
|
1984
|
+
'at %s:%s created at %s:%s>'
|
|
1985
|
+
% (filename, lineno, create_filename, create_lineno))
|
|
1986
|
+
|
|
1987
|
+
# cancelled handle
|
|
1988
|
+
h.cancel()
|
|
1989
|
+
self.assertEqual(repr(h),
|
|
1990
|
+
'<TimerHandle cancelled when=123 noop() '
|
|
1991
|
+
'at %s:%s created at %s:%s>'
|
|
1992
|
+
% (filename, lineno, create_filename, create_lineno))
|
|
1993
|
+
|
|
1994
|
+
|
|
1995
|
+
def test_timer_comparison(self):
|
|
1996
|
+
def callback(*args):
|
|
1997
|
+
return args
|
|
1998
|
+
|
|
1999
|
+
when = time.monotonic()
|
|
2000
|
+
|
|
2001
|
+
h1 = asyncio.TimerHandle(when, callback, (), self.loop)
|
|
2002
|
+
h2 = asyncio.TimerHandle(when, callback, (), self.loop)
|
|
2003
|
+
# TODO: Use assertLess etc.
|
|
2004
|
+
self.assertFalse(h1 < h2)
|
|
2005
|
+
self.assertFalse(h2 < h1)
|
|
2006
|
+
self.assertTrue(h1 <= h2)
|
|
2007
|
+
self.assertTrue(h2 <= h1)
|
|
2008
|
+
self.assertFalse(h1 > h2)
|
|
2009
|
+
self.assertFalse(h2 > h1)
|
|
2010
|
+
self.assertTrue(h1 >= h2)
|
|
2011
|
+
self.assertTrue(h2 >= h1)
|
|
2012
|
+
self.assertTrue(h1 == h2)
|
|
2013
|
+
self.assertFalse(h1 != h2)
|
|
2014
|
+
|
|
2015
|
+
h2.cancel()
|
|
2016
|
+
self.assertFalse(h1 == h2)
|
|
2017
|
+
|
|
2018
|
+
h1 = asyncio.TimerHandle(when, callback, (), self.loop)
|
|
2019
|
+
h2 = asyncio.TimerHandle(when + 10.0, callback, (), self.loop)
|
|
2020
|
+
self.assertTrue(h1 < h2)
|
|
2021
|
+
self.assertFalse(h2 < h1)
|
|
2022
|
+
self.assertTrue(h1 <= h2)
|
|
2023
|
+
self.assertFalse(h2 <= h1)
|
|
2024
|
+
self.assertFalse(h1 > h2)
|
|
2025
|
+
self.assertTrue(h2 > h1)
|
|
2026
|
+
self.assertFalse(h1 >= h2)
|
|
2027
|
+
self.assertTrue(h2 >= h1)
|
|
2028
|
+
self.assertFalse(h1 == h2)
|
|
2029
|
+
self.assertTrue(h1 != h2)
|
|
2030
|
+
|
|
2031
|
+
h3 = asyncio.Handle(callback, (), self.loop)
|
|
2032
|
+
self.assertIs(NotImplemented, h1.__eq__(h3))
|
|
2033
|
+
self.assertIs(NotImplemented, h1.__ne__(h3))
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
class AbstractEventLoopTests(unittest.TestCase):
|
|
2037
|
+
|
|
2038
|
+
def test_not_implemented(self):
|
|
2039
|
+
f = mock.Mock()
|
|
2040
|
+
loop = asyncio.AbstractEventLoop()
|
|
2041
|
+
self.assertRaises(
|
|
2042
|
+
NotImplementedError, loop.run_forever)
|
|
2043
|
+
self.assertRaises(
|
|
2044
|
+
NotImplementedError, loop.run_until_complete, None)
|
|
2045
|
+
self.assertRaises(
|
|
2046
|
+
NotImplementedError, loop.stop)
|
|
2047
|
+
self.assertRaises(
|
|
2048
|
+
NotImplementedError, loop.is_running)
|
|
2049
|
+
self.assertRaises(
|
|
2050
|
+
NotImplementedError, loop.is_closed)
|
|
2051
|
+
self.assertRaises(
|
|
2052
|
+
NotImplementedError, loop.close)
|
|
2053
|
+
self.assertRaises(
|
|
2054
|
+
NotImplementedError, loop.create_task, None)
|
|
2055
|
+
self.assertRaises(
|
|
2056
|
+
NotImplementedError, loop.call_later, None, None)
|
|
2057
|
+
self.assertRaises(
|
|
2058
|
+
NotImplementedError, loop.call_at, f, f)
|
|
2059
|
+
self.assertRaises(
|
|
2060
|
+
NotImplementedError, loop.call_soon, None)
|
|
2061
|
+
self.assertRaises(
|
|
2062
|
+
NotImplementedError, loop.time)
|
|
2063
|
+
self.assertRaises(
|
|
2064
|
+
NotImplementedError, loop.call_soon_threadsafe, None)
|
|
2065
|
+
self.assertRaises(
|
|
2066
|
+
NotImplementedError, loop.run_in_executor, f, f)
|
|
2067
|
+
self.assertRaises(
|
|
2068
|
+
NotImplementedError, loop.set_default_executor, f)
|
|
2069
|
+
self.assertRaises(
|
|
2070
|
+
NotImplementedError, loop.getaddrinfo, 'localhost', 8080)
|
|
2071
|
+
self.assertRaises(
|
|
2072
|
+
NotImplementedError, loop.getnameinfo, ('localhost', 8080))
|
|
2073
|
+
self.assertRaises(
|
|
2074
|
+
NotImplementedError, loop.create_connection, f)
|
|
2075
|
+
self.assertRaises(
|
|
2076
|
+
NotImplementedError, loop.create_server, f)
|
|
2077
|
+
self.assertRaises(
|
|
2078
|
+
NotImplementedError, loop.create_datagram_endpoint, f)
|
|
2079
|
+
self.assertRaises(
|
|
2080
|
+
NotImplementedError, loop.add_reader, 1, f)
|
|
2081
|
+
self.assertRaises(
|
|
2082
|
+
NotImplementedError, loop.remove_reader, 1)
|
|
2083
|
+
self.assertRaises(
|
|
2084
|
+
NotImplementedError, loop.add_writer, 1, f)
|
|
2085
|
+
self.assertRaises(
|
|
2086
|
+
NotImplementedError, loop.remove_writer, 1)
|
|
2087
|
+
self.assertRaises(
|
|
2088
|
+
NotImplementedError, loop.sock_recv, f, 10)
|
|
2089
|
+
self.assertRaises(
|
|
2090
|
+
NotImplementedError, loop.sock_sendall, f, 10)
|
|
2091
|
+
self.assertRaises(
|
|
2092
|
+
NotImplementedError, loop.sock_connect, f, f)
|
|
2093
|
+
self.assertRaises(
|
|
2094
|
+
NotImplementedError, loop.sock_accept, f)
|
|
2095
|
+
self.assertRaises(
|
|
2096
|
+
NotImplementedError, loop.add_signal_handler, 1, f)
|
|
2097
|
+
self.assertRaises(
|
|
2098
|
+
NotImplementedError, loop.remove_signal_handler, 1)
|
|
2099
|
+
self.assertRaises(
|
|
2100
|
+
NotImplementedError, loop.remove_signal_handler, 1)
|
|
2101
|
+
self.assertRaises(
|
|
2102
|
+
NotImplementedError, loop.connect_read_pipe, f,
|
|
2103
|
+
mock.sentinel.pipe)
|
|
2104
|
+
self.assertRaises(
|
|
2105
|
+
NotImplementedError, loop.connect_write_pipe, f,
|
|
2106
|
+
mock.sentinel.pipe)
|
|
2107
|
+
self.assertRaises(
|
|
2108
|
+
NotImplementedError, loop.subprocess_shell, f,
|
|
2109
|
+
mock.sentinel)
|
|
2110
|
+
self.assertRaises(
|
|
2111
|
+
NotImplementedError, loop.subprocess_exec, f)
|
|
2112
|
+
self.assertRaises(
|
|
2113
|
+
NotImplementedError, loop.set_exception_handler, f)
|
|
2114
|
+
self.assertRaises(
|
|
2115
|
+
NotImplementedError, loop.default_exception_handler, f)
|
|
2116
|
+
self.assertRaises(
|
|
2117
|
+
NotImplementedError, loop.call_exception_handler, f)
|
|
2118
|
+
self.assertRaises(
|
|
2119
|
+
NotImplementedError, loop.get_debug)
|
|
2120
|
+
self.assertRaises(
|
|
2121
|
+
NotImplementedError, loop.set_debug, f)
|
|
2122
|
+
|
|
2123
|
+
|
|
2124
|
+
class ProtocolsAbsTests(unittest.TestCase):
|
|
2125
|
+
|
|
2126
|
+
def test_empty(self):
|
|
2127
|
+
f = mock.Mock()
|
|
2128
|
+
p = asyncio.Protocol()
|
|
2129
|
+
self.assertIsNone(p.connection_made(f))
|
|
2130
|
+
self.assertIsNone(p.connection_lost(f))
|
|
2131
|
+
self.assertIsNone(p.data_received(f))
|
|
2132
|
+
self.assertIsNone(p.eof_received())
|
|
2133
|
+
|
|
2134
|
+
dp = asyncio.DatagramProtocol()
|
|
2135
|
+
self.assertIsNone(dp.connection_made(f))
|
|
2136
|
+
self.assertIsNone(dp.connection_lost(f))
|
|
2137
|
+
self.assertIsNone(dp.error_received(f))
|
|
2138
|
+
self.assertIsNone(dp.datagram_received(f, f))
|
|
2139
|
+
|
|
2140
|
+
sp = asyncio.SubprocessProtocol()
|
|
2141
|
+
self.assertIsNone(sp.connection_made(f))
|
|
2142
|
+
self.assertIsNone(sp.connection_lost(f))
|
|
2143
|
+
self.assertIsNone(sp.pipe_data_received(1, f))
|
|
2144
|
+
self.assertIsNone(sp.pipe_connection_lost(1, f))
|
|
2145
|
+
self.assertIsNone(sp.process_exited())
|
|
2146
|
+
|
|
2147
|
+
|
|
2148
|
+
class PolicyTests(unittest.TestCase):
|
|
2149
|
+
|
|
2150
|
+
def test_event_loop_policy(self):
|
|
2151
|
+
policy = asyncio.AbstractEventLoopPolicy()
|
|
2152
|
+
self.assertRaises(NotImplementedError, policy.get_event_loop)
|
|
2153
|
+
self.assertRaises(NotImplementedError, policy.set_event_loop, object())
|
|
2154
|
+
self.assertRaises(NotImplementedError, policy.new_event_loop)
|
|
2155
|
+
self.assertRaises(NotImplementedError, policy.get_child_watcher)
|
|
2156
|
+
self.assertRaises(NotImplementedError, policy.set_child_watcher,
|
|
2157
|
+
object())
|
|
2158
|
+
|
|
2159
|
+
def test_get_event_loop(self):
|
|
2160
|
+
policy = asyncio.DefaultEventLoopPolicy()
|
|
2161
|
+
self.assertIsNone(policy._local._loop)
|
|
2162
|
+
|
|
2163
|
+
loop = policy.get_event_loop()
|
|
2164
|
+
self.assertIsInstance(loop, asyncio.AbstractEventLoop)
|
|
2165
|
+
|
|
2166
|
+
self.assertIs(policy._local._loop, loop)
|
|
2167
|
+
self.assertIs(loop, policy.get_event_loop())
|
|
2168
|
+
loop.close()
|
|
2169
|
+
|
|
2170
|
+
def test_get_event_loop_calls_set_event_loop(self):
|
|
2171
|
+
policy = asyncio.DefaultEventLoopPolicy()
|
|
2172
|
+
|
|
2173
|
+
with mock.patch.object(
|
|
2174
|
+
policy, "set_event_loop",
|
|
2175
|
+
wraps=policy.set_event_loop) as m_set_event_loop:
|
|
2176
|
+
|
|
2177
|
+
loop = policy.get_event_loop()
|
|
2178
|
+
|
|
2179
|
+
# policy._local._loop must be set through .set_event_loop()
|
|
2180
|
+
# (the unix DefaultEventLoopPolicy needs this call to attach
|
|
2181
|
+
# the child watcher correctly)
|
|
2182
|
+
m_set_event_loop.assert_called_with(loop)
|
|
2183
|
+
|
|
2184
|
+
loop.close()
|
|
2185
|
+
|
|
2186
|
+
def test_get_event_loop_after_set_none(self):
|
|
2187
|
+
policy = asyncio.DefaultEventLoopPolicy()
|
|
2188
|
+
policy.set_event_loop(None)
|
|
2189
|
+
self.assertRaises(AssertionError, policy.get_event_loop)
|
|
2190
|
+
|
|
2191
|
+
@mock.patch('asyncio.events.threading.current_thread')
|
|
2192
|
+
def test_get_event_loop_thread(self, m_current_thread):
|
|
2193
|
+
|
|
2194
|
+
def f():
|
|
2195
|
+
policy = asyncio.DefaultEventLoopPolicy()
|
|
2196
|
+
self.assertRaises(AssertionError, policy.get_event_loop)
|
|
2197
|
+
|
|
2198
|
+
th = threading.Thread(target=f)
|
|
2199
|
+
th.start()
|
|
2200
|
+
th.join()
|
|
2201
|
+
|
|
2202
|
+
def test_new_event_loop(self):
|
|
2203
|
+
policy = asyncio.DefaultEventLoopPolicy()
|
|
2204
|
+
|
|
2205
|
+
loop = policy.new_event_loop()
|
|
2206
|
+
self.assertIsInstance(loop, asyncio.AbstractEventLoop)
|
|
2207
|
+
loop.close()
|
|
2208
|
+
|
|
2209
|
+
def test_set_event_loop(self):
|
|
2210
|
+
policy = asyncio.DefaultEventLoopPolicy()
|
|
2211
|
+
old_loop = policy.get_event_loop()
|
|
2212
|
+
|
|
2213
|
+
self.assertRaises(AssertionError, policy.set_event_loop, object())
|
|
2214
|
+
|
|
2215
|
+
loop = policy.new_event_loop()
|
|
2216
|
+
policy.set_event_loop(loop)
|
|
2217
|
+
self.assertIs(loop, policy.get_event_loop())
|
|
2218
|
+
self.assertIsNot(old_loop, policy.get_event_loop())
|
|
2219
|
+
loop.close()
|
|
2220
|
+
old_loop.close()
|
|
2221
|
+
|
|
2222
|
+
def test_get_event_loop_policy(self):
|
|
2223
|
+
policy = asyncio.get_event_loop_policy()
|
|
2224
|
+
self.assertIsInstance(policy, asyncio.AbstractEventLoopPolicy)
|
|
2225
|
+
self.assertIs(policy, asyncio.get_event_loop_policy())
|
|
2226
|
+
|
|
2227
|
+
def test_set_event_loop_policy(self):
|
|
2228
|
+
self.assertRaises(
|
|
2229
|
+
AssertionError, asyncio.set_event_loop_policy, object())
|
|
2230
|
+
|
|
2231
|
+
old_policy = asyncio.get_event_loop_policy()
|
|
2232
|
+
|
|
2233
|
+
policy = asyncio.DefaultEventLoopPolicy()
|
|
2234
|
+
asyncio.set_event_loop_policy(policy)
|
|
2235
|
+
self.assertIs(policy, asyncio.get_event_loop_policy())
|
|
2236
|
+
self.assertIsNot(policy, old_policy)
|
|
2237
|
+
|
|
2238
|
+
|
|
2239
|
+
if __name__ == '__main__':
|
|
2240
|
+
unittest.main()
|