marcelnicolay / mongotor

An asynchronous driver and toolkit for accessing MongoDB in Tornado
Other
57 stars 16 forks source link

migrate to gen.coroutine #42

Open vilisov opened 10 years ago

tahajahangir commented 10 years ago

I reviewed the changes, most of them seems OK, but this notes should be considered:

geerk commented 10 years ago

I do not understand about get_client method. swight did not remove get_client, he add it.

tahajahangir commented 10 years ago

Yes, I was wrong about get_client method! everything is ok.

geerk commented 10 years ago

@tahajahangir could you please fix two tests in test_signal.py? I have no idea why they fails.

tahajahangir commented 10 years ago

I rebased the changes to add travis build support. The new branch is located in tahajahangir/coroutine-py3.

I fixed the two failing tests in orm.signals (they incorrectly used two nested stop/wait calls). The good news is tests are passing in python 2.7, and the bad news is they passed only on python 2.7 (failed in 2.6, 3.2, 3.3, 3.4 and pypy). Build results is accessible in https://travis-ci.org/tahajahangir/mongotor/builds/26819709 .

@marcelnicolay : What's the reason to fix versions in requirements-dev.txt? It seems builds on python 3.x and pypy is failed because of outdated required packages.

@geerk : Can you fix syntax errors on python 2.6? (see build status)

geerk commented 10 years ago

@tahajahangir why we should support 2.6? I think those who use Tornado and MongoDB will not use 2.6.

tahajahangir commented 10 years ago

I added some commits (mainly added use of six and removed use of sure) and tests now run on python 2.7/3.2/3.3/3.4 (build status)

Only one test is failing on python 2.6. On pyy, there are several failing tests, and test process stucks at test_load_two_in_pool_connections.

I also pushed a merge of current open pull requests (#42 #42 #44 #37) to tahajahangir/master