~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to lib/sqlalchemy/testing/plugin/noseplugin.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
"""
13
13
 
14
14
import os
 
15
import sys
15
16
 
16
17
from nose.plugins import Plugin
17
18
fixtures = None
18
19
 
19
20
# no package imports yet!  this prevents us from tripping coverage
20
21
# too soon.
21
 
import imp
22
22
path = os.path.join(os.path.dirname(__file__), "plugin_base.py")
23
 
plugin_base = imp.load_source("plugin_base", path)
 
23
if sys.version_info >= (3,3):
 
24
    from importlib import machinery
 
25
    plugin_base = machinery.SourceFileLoader("plugin_base", path).load_module()
 
26
else:
 
27
    import imp
 
28
    plugin_base = imp.load_source("plugin_base", path)
24
29
 
25
30
 
26
31
class NoseSQLAlchemy(Plugin):