/[thuban]/branches/WIP-pyshapelib-bramz/test/support.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/test/support.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1673 by bh, Thu Aug 28 13:04:44 2003 UTC revision 1739 by bh, Tue Sep 23 12:25:56 2003 UTC
# Line 48  def initthuban(): Line 48  def initthuban():
48      """      """
49      global _initthuban_done      global _initthuban_done
50      if not _initthuban_done:      if not _initthuban_done:
51            # Thuban uses gettext to translate some strings. Some of these
52            # strings are tested for equality in some test cases. So we
53            # unset any LANG environment setting to make sure only the
54            # untranslated messages are used.
55            try:
56                del os.environ["LANG"]
57            except KeyError:
58                pass
59          add_thuban_dir_to_path()          add_thuban_dir_to_path()
60          import thubaninit          import thubaninit
61          _initthuban_done = 1          _initthuban_done = 1
# Line 304  class FloatComparisonMixin: Line 312  class FloatComparisonMixin:
312          value in test and value is less than the optional parameter          value in test and value is less than the optional parameter
313          epsilon. If epsilon is not given use self.fp_epsilon.          epsilon. If epsilon is not given use self.fp_epsilon.
314          """          """
315            self.assertEquals(len(test), len(value))
316          for i in range(len(test)):          for i in range(len(test)):
317              self.assertFloatEqual(test[i], value[i], epsilon)              self.assertFloatEqual(test[i], value[i], epsilon)
318    

Legend:
Removed from v.1673  
changed lines
  Added in v.1739

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26