Fix broken test that misuses urlparse library.

The behavior of urlparse (urllib.parse in python3) differs in
python2 and python 3. Current assumption only works with python3,
which leads to failure of test in python2.

Fix this by switching assumptions depending on python versions.

This also fixes a missing _handshake instance variable in EchoClient
class.

Change-Id: I6898c933457cdc5713148a4c880042594cc3c938
3 files changed
tree: b0f98391a5933ea8fcb0ae27985e4c9def2252d4
  1. example/
  2. mod_pywebsocket/
  3. test/
  4. .travis.yml
  5. CONTRIBUTING
  6. LICENSE
  7. MANIFEST.in
  8. README.md
  9. setup.py
README.md

pywebsocket3

The pywebsocket project aims to provide a WebSocket standalone server.

pywebsocket is intended for testing or experimental purposes.

Run this to read the general document:

$ pydoc mod_pywebsocket

Please see Wiki for more details.

INSTALL

To install this package to the system, run this:

$ python setup.py build
$ sudo python setup.py install

To install this package as a normal user, run this instead:

$ python setup.py build
$ python setup.py install --user

LAUNCH

To use pywebsocket as standalone server, run this to read the document:

$ pydoc mod_pywebsocket.standalone