(self, other)
| 1869 | self.name = name |
| 1870 | |
| 1871 | def __eq__(self, other): |
| 1872 | if other in self.seen: |
| 1873 | text = self.seen[other] |
| 1874 | else: |
| 1875 | text = self.seen[other] = other.read() |
| 1876 | other.close() |
| 1877 | if not isinstance(text, str): |
| 1878 | text = text.decode('ascii') |
| 1879 | return self.name == other.name == text |
| 1880 | |
| 1881 | class TestFileTypeR(TempDirMixin, ParserTestCase): |
| 1882 | """Test the FileType option/argument type for reading files""" |
nothing calls this directly
no test coverage detected