(self)
| 106 | |
| 107 | class NoInputEncodingTestCase(unittest.TestCase): |
| 108 | def setUp(self): |
| 109 | self.old_stdin = sys.stdin |
| 110 | class X: pass |
| 111 | fake_stdin = X() |
| 112 | sys.stdin = fake_stdin |
| 113 | |
| 114 | def test(self): |
| 115 | # Verify that if sys.stdin has no 'encoding' attribute we do the right |