~ubuntuone-pqm-team/canonical-identity-provider/trunk

« back to all changes in this revision

Viewing changes to doctests/runner.py

  • Committer: Colin Watson
  • Date: 2018-01-26 00:47:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1593.
  • Revision ID: cjwatson@canonical.com-20180126004702-0difdwm66ucwuikk
Use Python 3-style print functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright 2010 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
 
4
from __future__ import print_function
 
5
 
4
6
import sys
5
7
import os
6
8
import unittest
105
107
    else:
106
108
        testfile = args[-1]
107
109
    for f in files(testfile):
108
 
        globs = {'anon_browser': Browser(),
 
110
        globs = {'print_function': print_function,
 
111
                 'anon_browser': Browser(),
109
112
                 'browser': Browser(),
110
113
                 'user_browser': Browser(),
111
114
                 'setupBrowser': setupBrowser,