Skip to content

Commit

Permalink
Fixed Travis-CI failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
anandology committed May 29, 2012
1 parent c905312 commit 257a2ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ install: pip install -r test/requirements.txt --use-mirrors; if [ $TRAVIS_PYTHON
script: python test/alltests.py
before_install:
- "sudo mkdir -p /usr/include/postgresql/8.4/server"
- 'sudo apt-get -o Dpkg::Options::="--force-overwrite" install python-profiler'
# - 'sudo apt-get -o Dpkg::Options::="--force-overwrite" install python-profiler'
before_script:
- "psql -c 'create database webpy;' -U postgres"
- mysql --user=root -e "create user 'scott'@'localhost' identified by 'tiger'; create database webpy; grant all privileges on webpy.* to 'scott'@'localhost' with grant option;"
Expand Down
4 changes: 2 additions & 2 deletions test/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ def GET(self):

thread.start()
time.sleep(1)
self.assertTrue(thread.is_alive())
self.assertTrue(thread.isAlive())

app.stop()
thread.join(timeout=1)
self.assertFalse(thread.is_alive())
self.assertFalse(thread.isAlive())

if __name__ == '__main__':
webtest.main()

0 comments on commit 257a2ac

Please sign in to comment.