~ubuntu-branches/ubuntu/quantal/python-tz/quantal

« back to all changes in this revision

Viewing changes to debian/test-pytz

  • Committer: Bazaar Package Importer
  • Author(s): Brian Sutherland
  • Date: 2007-05-09 12:01:36 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070509120136-oi18syaota63tyzy
Tags: 2007d-1
* New upstream release (Closes: 415458)
* Revert patch ignoring arch files, it's not necessary any and conflicted
  with upstream.
* Patch upstream to use /usr/share/zoneinfo and remove the included version,
  also depend on tzdata package. (Closes: 416202)
* Write and install a testrunner that can run the pytz tests in
  /usr/lib/python-tz/test-pytxX.Y which tests pythonX.Y.
* Build depends on python-central > 0.5, debhelper > 5.0.38
* Remove workaround for python-central/debhelper breakage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python@PYVERSION@
 
2
"""Run to test the system python"""
 
3
import doctest
 
4
import pytz
 
5
import pytz.tzinfo
 
6
import sys
 
7
 
 
8
errors = 0
 
9
tests = 0
 
10
for mod in [pytz, pytz.tzinfo]: 
 
11
    mod_errors, mod_tests = doctest.testmod(mod)
 
12
    errors += mod_errors
 
13
    tests += mod_tests
 
14
 
 
15
if not errors:
 
16
    print "Ran %s tests successfully." % tests
 
17
sys.exit(errors)