~ubuntu-branches/ubuntu/utopic/python-eventlet/utopic

« back to all changes in this revision

Viewing changes to tests/patcher_psycopg_test.py

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2011-05-17 11:52:34 UTC
  • mfrom: (1.1.4 upstream) (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110517115234-fcxnkhmr7kcvesdz
Tags: 0.9.15-0ubuntu1
* New upstream release.
  - Drop wrap-greenpipe.patch: Included upstream.
  - Drop disable-psycopg-patcher-test.patch: Included upstream.
* Merge packaging changes from Debian.
* Disable zmq (tests do not pass).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import os
2
2
 
3
 
from tests import patcher_test
 
3
from tests import patcher_test, skip_unless
4
4
from tests import get_database_auth
 
5
from tests.db_pool_test import postgres_requirement
5
6
 
6
7
psycopg_test_file = """
7
8
import os
35
36
"""
36
37
 
37
38
class PatchingPsycopg(patcher_test.ProcessBase):
 
39
    @skip_unless(postgres_requirement)
38
40
    def test_psycopg_patched(self):
39
41
        if 'PSYCOPG_TEST_DSN' not in os.environ:
40
42
            # construct a non-json dsn for the subprocess