]> rtime.felk.cvut.cz Git - wvtest.git/commit
Update wvtest.py to the new version that does os.chdir().
authorAvery Pennarun <apenwarr@gmail.com>
Sat, 26 Jun 2010 04:48:11 +0000 (00:48 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Sat, 26 Jun 2010 04:58:12 +0000 (00:58 -0400)
commit6d6d6377054cb530489651a45018392611a73d05
treeba640bab9c1512687767b9d1524b61de43320c98
parent138b6715386e6d802e6cf55a23136098e5944e6e
Update wvtest.py to the new version that does os.chdir().

It was too annoying to test submodules, because if any of them opened a
file, they always had to mention the full path from the wvtest.py (which was
usually at the root of the whole project) to the data file (which was
usually in the t/ subdir of the submodule).  So if you extracted a submodule
into its own project, all the paths would be wrong.

Now wvtest.py does os.chdir() into the t/ subdir being tested.  If you don't
like that, you can always chdir into a parent directory.
python/t/testfile.txt [new file with mode: 0644]
python/t/twvtest.py
python/wvtest.py