~ubuntu-branches/debian/jessie/sqlalchemy/jessie

« back to all changes in this revision

Viewing changes to sqla_nose.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski, Jakub Wilk, Piotr Ożarowski
  • Date: 2013-07-06 20:53:52 UTC
  • mfrom: (1.4.23) (16.1.17 experimental)
  • Revision ID: package-import@ubuntu.com-20130706205352-ryppl1eto3illd79
Tags: 0.8.2-1
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Piotr Ożarowski ]
* New upstream release
* Upload to unstable
* Build depend on python3-all instead of -dev, extensions are not built for
  Python 3.X 

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
"""
9
9
import sys
 
10
import imp
 
11
import nose
 
12
 
10
13
 
11
14
from os import path
12
 
for pth in ['.', './lib']:
 
15
for pth in ['./lib']:
13
16
    sys.path.insert(0, path.join(path.dirname(path.abspath(__file__)), pth))
14
17
 
15
 
from test.bootstrap.noseplugin import NoseSQLAlchemy
16
 
 
17
 
import nose
18
 
 
19
 
nose.main(addplugins=[NoseSQLAlchemy()])
 
18
# installing without importing SQLAlchemy, so that coverage includes
 
19
# SQLAlchemy itself.
 
20
path = "lib/sqlalchemy/testing/plugin/noseplugin.py"
 
21
noseplugin = imp.load_source("noseplugin", path)
 
22
 
 
23
 
 
24
nose.main(addplugins=[noseplugin.NoseSQLAlchemy()])