Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 705949 Details for
Bug 857875
write callback: No safe way to signal user abort
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
test_write_abort.py: test returning -1 from write callback
test_write_abort.py (text/plain), 663 bytes, created by
Kamil Dudka
on 2013-03-06 13:44:56 UTC
(
hide
)
Description:
test_write_abort.py: test returning -1 from write callback
Filename:
MIME Type:
Creator:
Kamil Dudka
Created:
2013-03-06 13:44:56 UTC
Size:
663 bytes
patch
obsolete
>#!/usr/bin/python >import os.path >import pycurl >import sys > >pycurl.global_init(pycurl.GLOBAL_DEFAULT) > >def write_cb(_): > # this should cause pycurl.WRITEFUNCTION (without any range errors) > return -1 > ># download the script itself through the file:// protocol into write_cb >c = pycurl.Curl() >c.setopt(pycurl.URL, 'file://' + os.path.abspath(sys.argv[0])) >c.setopt(pycurl.WRITEFUNCTION, write_cb) >try: > c.perform() >except pycurl.error, (err, msg): > # we expect pycurl.E_WRITE_ERROR as the response > assert pycurl.E_WRITE_ERROR == err > ># no additional errors should be reported >assert not hasattr(sys, 'last_value') > >c.close() > >pycurl.global_cleanup()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 857875
:
613627
|
658097
|
703018
|
703490
|
703505
|
703527
| 705949