[pypy-svn] r34761 - in pypy/dist/pypy/translator/cli: src test

antocuni at codespeak.net antocuni at codespeak.net
Sun Nov 19 18:09:33 CET 2006


Author: antocuni
Date: Sun Nov 19 18:09:32 2006
New Revision: 34761

Modified:
   pypy/dist/pypy/translator/cli/src/pypylib.cs
   pypy/dist/pypy/translator/cli/test/test_streamio.py
Log:
bugfix, and don't skip the test that now passes.



Modified: pypy/dist/pypy/translator/cli/src/pypylib.cs
==============================================================================
--- pypy/dist/pypy/translator/cli/src/pypylib.cs	(original)
+++ pypy/dist/pypy/translator/cli/src/pypylib.cs	Sun Nov 19 18:09:32 2006
@@ -273,7 +273,7 @@
             if (stop > s.Length)
                 stop = s.Length;
             int count=stop-start;
-            if (start > s.Length)
+            if (start > s.Length || stop == 0)
                 return -1;
             return s.LastIndexOf(ch, stop-1, count);
         }

Modified: pypy/dist/pypy/translator/cli/test/test_streamio.py
==============================================================================
--- pypy/dist/pypy/translator/cli/test/test_streamio.py	(original)
+++ pypy/dist/pypy/translator/cli/test/test_streamio.py	Sun Nov 19 18:09:32 2006
@@ -12,8 +12,7 @@
     pass
 
 class TestLineBufferingOutputStream(CliTest, BaseTestLineBufferingOutputStream):
-    def test_write(self):
-        py.test.skip('Fixme!')
+    pass
 
 class TestCRLFFilter(CliTest, BaseTestCRLFFilter):
     pass



More information about the Pypy-commit mailing list