~pythonregexp2.7/python/issue2636-11

« back to all changes in this revision

Viewing changes to Lib/bsddb/test/test_compat.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-21 13:47:31 UTC
  • mfrom: (39021.1.404 Regexp-2.7)
  • mto: This revision was merged to the branch mainline in revision 39030.
  • Revision ID: darklord@timehorse.com-20080921134731-rudomuzeh1b2tz1y
Merged in changes from the latest python source snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
import os, string
7
7
import unittest
8
8
 
9
 
from test_all import verbose, get_new_database_path
10
 
 
11
 
 
12
 
try:
13
 
    # For Pythons w/distutils pybsddb
14
 
    from bsddb3 import db, hashopen, btopen, rnopen
15
 
except ImportError:
16
 
    # For Python 2.3
17
 
    from bsddb import db, hashopen, btopen, rnopen
 
9
from test_all import db, hashopen, btopen, rnopen, verbose, \
 
10
        get_new_database_path
 
11
 
18
12
 
19
13
class CompatibilityTestCase(unittest.TestCase):
20
14
    def setUp(self):
34
28
        self.do_bthash_test(hashopen, 'hashopen')
35
29
 
36
30
    def test03_rnopen(self):
37
 
        data = string.split("The quick brown fox jumped over the lazy dog.")
 
31
        data = "The quick brown fox jumped over the lazy dog.".split()
38
32
        if verbose:
39
33
            print "\nTesting: rnopen"
40
34