summaryrefslogtreecommitdiff
path: root/cffi
diff options
context:
space:
mode:
authorMatt Davis <mrd@redhat.com>2021-07-07 00:22:07 -0700
committerMatt Davis <mrd@redhat.com>2021-07-07 00:22:07 -0700
commitfa4c08b90bc9929f3e42e71a5445e3e1cf07f030 (patch)
treea5c65bd1cfed337c499cdcbb5936e59909d6c188 /cffi
parentb9cbd7792003f9a262cfaf5ff6a1bc553e5ab6e4 (diff)
downloadcffi-fa4c08b90bc9929f3e42e71a5445e3e1cf07f030.tar.gz
fixed test failures in Unraisable error collectorfix_filelike_flush
Diffstat (limited to 'cffi')
-rw-r--r--cffi/_cffi_errors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cffi/_cffi_errors.h b/cffi/_cffi_errors.h
index 83cdad0..158e059 100644
--- a/cffi/_cffi_errors.h
+++ b/cffi/_cffi_errors.h
@@ -54,6 +54,8 @@ static PyObject *_cffi_start_error_capture(void)
" of.write(x)\n"
" except: pass\n"
" self.buf += x\n"
+ " def flush(self):\n"
+ " pass\n"
"fl = FileLike()\n"
"fl.buf = ''\n"
"of = sys.stderr\n"