diff options
author | Marius Gedminas <marius@gedmin.as> | 2013-02-11 13:22:10 +0000 |
---|---|---|
committer | Marius Gedminas <marius@gedmin.as> | 2013-02-11 13:22:10 +0000 |
commit | 5e38d2ba53288c50e0f419ee054b0bbacc835a66 (patch) | |
tree | b48ec2e35859c064e81ba4b3fb28b9a34fe4c5a8 /src/zope/tal/tests | |
parent | 3ba06b26224a164d023aa5755059e2a4db40a6fd (diff) | |
download | zope-tal-5e38d2ba53288c50e0f419ee054b0bbacc835a66.tar.gz |
Make runtest.py use optparse.
Make python -m zope.tal.runtest work even when your current working
directory is not src/zope/tal/
Diffstat (limited to 'src/zope/tal/tests')
-rw-r--r-- | src/zope/tal/tests/test_files.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zope/tal/tests/test_files.py b/src/zope/tal/tests/test_files.py index 2d87654..df8d4b8 100644 --- a/src/zope/tal/tests/test_files.py +++ b/src/zope/tal/tests/test_files.py @@ -51,11 +51,11 @@ class FileTestCase(unittest.TestCase): def runTest(self): basename = os.path.basename(self.__file) if basename.startswith('test_sa'): - sys.argv = ["", "-Q", "-a", self.__file] + sys.argv = ["runtest.py", "-Q", "-a", self.__file] elif basename.startswith('test_metal'): - sys.argv = ["", "-Q", "-m", self.__file] + sys.argv = ["runtest.py", "-Q", "-m", self.__file] else: - sys.argv = ["", "-Q", self.__file] + sys.argv = ["runtest.py", "-Q", self.__file] pwd = os.getcwd() try: os.chdir(self.__dir) |