(self)
| 829 | tarfile.open(self.tarname) |
| 830 | |
| 831 | def test_next_on_empty_tarfile(self): |
| 832 | fd = io.BytesIO() |
| 833 | tf = tarfile.open(fileobj=fd, mode="w") |
| 834 | tf.close() |
| 835 | |
| 836 | fd.seek(0) |
| 837 | with tarfile.open(fileobj=fd, mode="r|") as tf: |
| 838 | self.assertEqual(tf.next(), None) |
| 839 | |
| 840 | fd.seek(0) |
| 841 | with tarfile.open(fileobj=fd, mode="r") as tf: |
| 842 | self.assertEqual(tf.next(), None) |
| 843 | |
| 844 | def _setup_symlink_to_target(self, temp_dirpath): |
| 845 | target_filepath = os.path.join(temp_dirpath, "target") |
nothing calls this directly
no test coverage detected