# HG changeset patch # User Oleg Oshmyan # Date 1264191367 0 # Node ID cd4304ff1d1bfb633967dd42753b362a80b6791d # Parent bddcc05aba59ba79168f40f8dccc021392299bfa Minor changes diff -r bddcc05aba59 -r cd4304ff1d1b test.py --- a/test.py Fri Jan 22 19:48:24 2010 +0000 +++ b/test.py Fri Jan 22 20:16:07 2010 +0000 @@ -1,5 +1,5 @@ #! /usr/bin/python -# Copyright (c) 2009 Chortos-2 +# Copyright (c) 2009-2010 Chortos-2 import os, sys, shutil, time, subprocess, filecmp, optparse, signal, tempfile, tarfile, zipfile @@ -256,7 +256,7 @@ if f: return f if cwd: - if os.path.isfile(os.path.join(oldcwd, 'tests', cwd, name): + if os.path.isfile(os.path.join(oldcwd, 'tests', cwd, name)): return open(os.path.join(oldcwd, 'tests', cwd, name), 'rU') elif os.path.isfile(os.path.join(oldcwd, 'tests', name)): return open(os.path.join(oldcwd, 'tests', name), 'rU') @@ -376,7 +376,7 @@ cwd = '' if os.path.isdir(taskname): os.chdir(taskname) - if taskname != : + if taskname != os.path.curdir: cwd = taskname try: execfile('testconf.py', globals()) @@ -524,7 +524,7 @@ except NameError, error: if os.name == 'posix': pause = 'read -s -n 1' - print 'Configuration ' + str(error).replace('name ', 'variable ') + '; it was devised automatically but the choice might be incorrect, so test.py might exit immediately after the testing is complete.' + print 'Configuration ' + str(error).replace('name ', 'variable ') + '; it was devised automatically but the choice might be incorrect, so test.py might exit immediately after the testing is completed.' elif os.name == 'nt': pause = 'pause' else: diff -r bddcc05aba59 -r cd4304ff1d1b test.py.sublime-project --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test.py.sublime-project Fri Jan 22 20:16:07 2010 +0000 @@ -0,0 +1,9 @@ + + + + + + +