809
by Canonical.com Patch Queue Manager
Nuke some arch-tags |
1 |
#!/usr/bin/env python2.3
|
2 |
##############################################################################
|
|
3 |
#
|
|
4 |
# Copyright (c) 2004 Zope Corporation and Contributors.
|
|
5 |
# All Rights Reserved.
|
|
6 |
#
|
|
7 |
# This software is subject to the provisions of the Zope Public License,
|
|
8 |
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
|
|
9 |
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
|
|
10 |
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
11 |
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
|
|
12 |
# FOR A PARTICULAR PURPOSE.
|
|
13 |
#
|
|
14 |
##############################################################################
|
|
15 |
"""Test script
|
|
16 |
||
17 |
$Id: test.py 25177 2004-06-02 13:17:31Z jim $
|
|
18 |
"""
|
|
19 |
import sys, os |
|
20 |
||
21 |
here = os.path.dirname(os.path.realpath(__file__)) |
|
22 |
sys.path.append(os.path.join(here, 'lib')) |
|
23 |
||
24 |
# Set PYTHONPATH environment variable for spawned processes
|
|
25 |
os.environ['PYTHONPATH'] = ':'.join(sys.path) |
|
26 |
||
881
by Canonical.com Patch Queue Manager
More popups - Person and BinaryPackageName |
27 |
# This is a hack to use canonical.difflib instead of standard difflib
|
940
by Canonical.com Patch Queue Manager
Full text indexing, database schema patches |
28 |
# so we can easily test it. Comment out and commit to rocketfuel if
|
29 |
# it causes grief -- StuartBishop 20041130
|
|
30 |
# Turned off - we need more context or linenumbers. eg. I'm being told I
|
|
31 |
# have an unexpected line, but no way to tell where.
|
|
32 |
def monkey_patch_doctest(): |
|
33 |
import canonical.difflib |
|
34 |
sys.modules['difflib'] = canonical.difflib |
|
35 |
import difflib |
|
36 |
assert hasattr(difflib.Differ, 'fancy_compare'), \ |
|
37 |
'Failed to monkey patch difflib'
|
|
38 |
import zope.testing.doctest |
|
39 |
import canonical.doctest |
|
40 |
zope.testing.doctest.OutputChecker = canonical.doctest.OutputChecker |
|
1025
by Canonical.com Patch Queue Manager
split full bug list into simple/advanced |
41 |
#monkey_patch_doctest()
|
881
by Canonical.com Patch Queue Manager
More popups - Person and BinaryPackageName |
42 |
|
809
by Canonical.com Patch Queue Manager
Nuke some arch-tags |
43 |
# This is a terrible hack to divorce the FunctionalTestSetup from
|
44 |
# its assumptions about the ZODB.
|
|
45 |
from zope.app.tests.functional import FunctionalTestSetup |
|
46 |
FunctionalTestSetup.__init__ = lambda *x: None |
|
47 |
||
48 |
import zope.app.tests.test |
|
49 |
||
50 |
if __name__ == '__main__': |
|
51 |
zope.app.tests.test.process_args() |