Merge lp:~jjacobs/divmod.org/1175494-failing-imaginary-text-tests into lp:divmod.org

Proposed by Jonathan Jacobs
Status: Merged
Merged at revision: 2707
Proposed branch: lp:~jjacobs/divmod.org/1175494-failing-imaginary-text-tests
Merge into: lp:divmod.org
Diff against target: 12 lines (+1/-1)
1 file modified
Imaginary/imaginary/test/test_text.py (+1/-1)
To merge this branch: bzr merge lp:~jjacobs/divmod.org/1175494-failing-imaginary-text-tests
Reviewer Review Type Date Requested Status
Divmod-dev Pending
Review via email: mp+162048@code.launchpad.net

Description of the change

Fix failing Imaginary text tests.

To post a comment you must log in.
Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

Hmmm. This means Imaginary will only work with trunk@HEAD?

Revision history for this message
Jonathan Jacobs (jjacobs) wrote :

> Hmmm. This means Imaginary will only work with trunk@HEAD?

I guess so. There could be some kind of getattr fallback shenanigans? Or alternatively the code for _currentFormattingState could also be copied to this class?

Revision history for this message
Glyph Lefkowitz (glyph) wrote :

On May 2, 2013, at 6:21 AM, Jonathan Jacobs <email address hidden> wrote:

>> Hmmm. This means Imaginary will only work with trunk@HEAD?
>
> I guess so. There could be some kind of getattr fallback shenanigans? Or alternatively the code for _currentFormattingState could also be copied to this class?

Sorry, I'm missing some context. trunk@HEAD of...?

Revision history for this message
Jonathan Jacobs (jjacobs) wrote :

>
> On May 2, 2013, at 6:21 AM, Jonathan Jacobs <email address hidden>
> wrote:
>
> >> Hmmm. This means Imaginary will only work with trunk@HEAD?
> >
> > I guess so. There could be some kind of getattr fallback shenanigans? Or
> alternatively the code for _currentFormattingState could also be copied to
> this class?
>
> Sorry, I'm missing some context. trunk@HEAD of...?

Of Twisted. Or whatever revision the conch changes are in, if you want to be specific.

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

The rest of the context is that a private method changed names in Twisted last week or so. Imaginary was calling that private method. The change here makes it call the private method by its new name.

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

The "Echo Server" example at http://twistedmatrix.com/ does just this.

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

Sorry, wrong form. :(

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

Okay Twisted 13.2 is out, so this will now change Imaginary from depending on a private implementation detail of Twisted <13.2 to depending on a private implementation detail of Twisted >=13.2 (rather than a private implementation of detail of Twisted trunk@WHOKNOWSWHAT).

I think I'm okay with that, but the branch should update the Imaginary DEPS file.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Imaginary/imaginary/test/test_text.py'
2--- Imaginary/imaginary/test/test_text.py 2010-07-16 16:39:06 +0000
3+++ Imaginary/imaginary/test/test_text.py 2013-05-02 08:30:36 +0000
4@@ -333,7 +333,7 @@
5 self._scrollDown()
6 # The following conditional has been changed from the original.
7 if (b > '\x7f' or b in string.printable) and b not in '\r\n':
8- ch = (b, self._currentCharacterAttributes())
9+ ch = (b, self._currentFormattingState())
10 if self.modes.get(insults.modes.IRM):
11 self.lines[self.y][self.x:self.x] = [ch]
12 self.lines[self.y].pop()

Subscribers

People subscribed via source and target branches

to all changes: