1. jython
  2. jython

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.

  • Participants
  • Parent commits d0df9ed
  • Branches default

Comments (0)

Files changed (1)

File Lib/test/test_java_integration.py

View file
 
     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