You're right i've just done it, tests fail...

On 23/02/2013 14:45, serge-sans-paille wrote:
> In pythran/tests/test_file.py:
> 
>> +            self.tempfile()
>> +            self.run_test("""def _isatty(filename):\n f=file(filename)\n return f.isatty()""", self.filename, _isatty=[str])
>> +
>> +    def test_truncate(self):
>> +            self.tempfile()
>> +            self.run_test("""def _truncate(filename):\n f=file(filename, 'a')\n f.seek(3)\n f.truncate()\n f.close()\n return open(filename).read()""", self.filename, _truncate=[str])
>> +
>> +    def test_truncate_size(self):
>> +            self.tempfile()
>> +            self.run_test("""def _truncate_size(filename):\n f=file(filename, 'a')\n f.truncate(4)\n f.close()\n return open(filename).read()""", self.filename, _truncate_size=[str])
>> +
>> +    def test_flush(self):
>> +            self.tempfile()
>> +            # Don't know how to check properly, just checking fct call.
>> +            self.run_test("""def _flush(filename):\n f=file(filename, 'a')\n f.flush()""", self.filename, _flush=[str])
>> +
> 
> I think you should add the file(...).any_method test cases just to be
> sure...
> 
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/serge-sans-paille/pythran/pull/49/files#r3126689>.
>