Ticket #5830 task closed fixed
Make twisted/test/test_text pass under Python 3
| Reported by: | vperic | Owned by: | vperic |
|---|---|---|---|
| Priority: | normal | Milestone: | Python-3.x |
| Component: | core | Keywords: | py3k |
| Cc: | thijs | Branch: | branches/test_text-5830 |
| Author: | vperic | Launchpad Bug: |
Description
As before, to actually make this actually run you need to import unittest from the library, not from trial, and then "python3.2 -m unittest twisted.test.test_text" will run the tests.
The changes:
Replace calls to functions from the string module in favor of string methods (Refs: #4999); don't use the types module in favor of the "isinstance" function - types was changed in Python 3 to not include some base types, like dicts, lists and tuples.
This also required the addition of some tests.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

