Commits

Jeff Allen committed 8dc4a27

Break assumption in test_java_integration about System.in
When test runs interactively, System.in may be a wrapped console library,
not a BufferedInputStream.

Comments (0)

Files changed (1)

Lib/test/test_java_integration.py

 
     def test_system_in(self):
         s = System.in
-        self.assert_("java.io.BufferedInputStream" in str(s))
+        self.assert_("method" in str(s.read))
 
     def test_runtime_exec(self):
         e = Runtime.getRuntime().exec