[Twisted-Python] Re: [Twisted-commits] yay reactors! -r <submodule-of-twisted.internet>

On Sun, Jan 05, 2003 at 01:12:51AM -0600, radix CVS wrote:
Modified files: Twisted/admin/runtests 1.18 1.19
ViewCVS links: http://twistedmatrix.com/users/jh.twistd/viewcvs/cgi/viewcvs.cgi/admin/runtests.diff?r1=text&tr1=1.18&r2=text&tr2=1.19&cvsroot=Twisted http://twistedmatrix.com/users/jh.twistd/viewcvs/cgi/viewcvs.cgi/twisted/scripts/trial.py.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&cvsroot=Twisted
Index: Twisted/admin/runtests diff -u Twisted/admin/runtests:1.18 Twisted/admin/runtests:1.19 --- Twisted/admin/runtests:1.18 Sat Jan 4 18:52:28 2003 +++ Twisted/admin/runtests Sat Jan 4 23:12:48 2003 @@ -27,8 +27,8 @@
from twisted.scripts import trial
-if len(sys.argv) == 1: - sys.argv.extend(['-p', 'twisted.test']) +# People shouldn't really be passing -p to runtests; it's explicitly for twisted.test +sys.argv.extend(['-p', 'twisted.test'])
Although people shouldn't be passing -p to runtests, they can be expected to pass -m. The old behaviour was that 'runtests -m twisted.test.test_stuff' would only run the tests in the test_stuff module. With this commit, the same command will run the entire test suite, which sucks. Can we fix it? jml

On Mon, Jan 06, 2003 at 10:49:58AM +1100, Jonathan M. Lange wrote:
On Sun, Jan 05, 2003 at 01:12:51AM -0600, radix CVS wrote:
Modified files: Twisted/admin/runtests 1.18 1.19
Index: Twisted/admin/runtests diff -u Twisted/admin/runtests:1.18 Twisted/admin/runtests:1.19 --- Twisted/admin/runtests:1.18 Sat Jan 4 18:52:28 2003 +++ Twisted/admin/runtests Sat Jan 4 23:12:48 2003 @@ -27,8 +27,8 @@
from twisted.scripts import trial
-if len(sys.argv) == 1: - sys.argv.extend(['-p', 'twisted.test']) +# People shouldn't really be passing -p to runtests; it's explicitly for twisted.test +sys.argv.extend(['-p', 'twisted.test'])
Although people shouldn't be passing -p to runtests, they can be expected to pass -m.
The old behaviour was that 'runtests -m twisted.test.test_stuff' would only run the tests in the test_stuff module. With this commit, the same command will run the entire test suite, which sucks.
Can we fix it?
BTW, I should mention that this stuff is entirely orthogonal to the good work done by adding a reactor switch. Reverting to fix the -p / -m thing would be a mistake. jml
participants (2)
-
jml@ids.org.au
-
jml@mumak.net