Author: danielsh Date: Thu Jul 28 00:06:31 2011 New Revision: 1151680 URL: http://svn.apache.org/viewvc?rev=1151680&view=rev Log: Fix a failure with Python <2.6.
* subversion/tests/cmdline/svntest/main.py (math): Remove import. (_parse_options): Use a different technique to check infiniteness. Modified: subversion/trunk/subversion/tests/cmdline/svntest/main.py Modified: subversion/trunk/subversion/tests/cmdline/svntest/main.py URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/main.py?rev=1151680&r1=1151679&r2=1151680&view=diff ============================================================================== --- subversion/trunk/subversion/tests/cmdline/svntest/main.py (original) +++ subversion/trunk/subversion/tests/cmdline/svntest/main.py Thu Jul 28 00:06:31 2011 @@ -25,7 +25,6 @@ import sys # for argv[] import os -import math # for math.isinf() import shutil # for rmtree() import re import stat # for ST_MODE @@ -1542,7 +1541,7 @@ def _parse_options(arglist=sys.argv[1:]) # If you change the below condition then change # ../../../../build/run_tests.py too. if (options.server_minor_version < 3 or options.server_minor_version > 7) \ - and not math.isinf(options.server_minor_version): + and options.server_minor_version != float('inf'): parser.error("test harness only supports server minor versions 3-7") if options.url: