Skip to content

ReactorBuilder test infrastructure breaks code that uses the global reactor #5206

@twisted-trac

Description

@twisted-trac
itamarst's avatar @itamarst reported
Trac ID trac#5206
Type defect
Created 2011-07-27 11:52:15Z

Code that uses the global reactor, e.g. twisted.internet.task.cooperate, will not work correctly with tests that use the ReactorBuilder infrastructure. While such code should be updated to have an explicit reactor passed in, doing so can be non-trivial (e.g. cooperate needs a registry, or it's a 3rd party library that cannot be modified).

Providing some workaround to this would both be helpful for testing, but also (depending on the implementation) could later be expanded to help catch code that relies on the global reactor instance.

Searchable metadata
trac-id__5206 5206
type__defect defect
reporter__itamar itamar
priority__normal normal
milestone__ 
branch__ 
branch_author__ 
status__closed closed
resolution__wontfix wontfix
component__core core
keywords__ 
time__1311767535000000 1311767535000000
changetime__1321499609000000 1321499609000000
version__None None
owner__itamar itamar

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions