Skip to content

Commit

Permalink
Move the checkout of dbapi-compliance into our source tree
Browse files Browse the repository at this point in the history
Also add configuration for using chained mr.
  • Loading branch information
petere committed Sep 14, 2012
1 parent ed094cf commit 98f4512
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
/dbapi-compliance/
2 changes: 2 additions & 0 deletions .mrconfig
@@ -0,0 +1,2 @@
[dbapi-compliance]
checkout = bzr branch lp:dbapi-compliance dbapi-compliance
8 changes: 3 additions & 5 deletions README.md
Expand Up @@ -41,14 +41,12 @@ Test suite
There is a test suite in the test/ subdirectory. It uses the DB-API
compliance test framework from
<https://launchpad.net/dbapi-compliance>. So first fetch, er, clone,
er, branch yourself a copy of that:
er, branch yourself a copy of that

bzr branch lp:dbapi-compliance

Copy the file dbapi20.py somewhere into the Python module path.
Either install it into one of Python's own directories, or you can
just copy it into the top level directory of this distribution, next
to plpydbapi.py.
into the current directory. If you have
[mr](http://kitenet.net/~joey/code/mr/), just run `mr up`.

If you are using Python 2.6, you also need the unittest2 package; with
Python 2.7 and later, the unittest module in the standard library is
Expand Down
2 changes: 1 addition & 1 deletion test/run_test_plpydbapi_dbapi20.sql
Expand Up @@ -24,7 +24,7 @@ CREATE OR REPLACE LANGUAGE :langname;

-- adjust sys.path
\set pwd `pwd`
\set cmd 'import sys\nsys.path.insert(0, \'' :pwd '\')'
\set cmd 'import sys; sys.path.insert(0, \'' :pwd '\'); sys.path.append(\'' :pwd '/dbapi-compliance\')'
DO LANGUAGE :langname :'cmd';

-- run unittest
Expand Down

0 comments on commit 98f4512

Please sign in to comment.