Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Ignore indented lines that aren't part of a test #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pjeby
Copy link
Contributor

@pjeby pjeby commented Nov 6, 2017

Currently, cram treats any indented line as though it were part of test output, even if it's not adjacent to a command, continuation, or other output line. This PR makes it ignore lines that are not part of a test or its output, even if they are at the same indent level.

@pjeby
Copy link
Contributor Author

pjeby commented Nov 6, 2017

Please note that the build failure here is caused by the pep8 deprecation warning; with the changes in #30, this code actually passes the tests. (And of course it adds a regression test for the change.)

@roman-neuhauser
Copy link

This is implemented in Dram (https://git.sr.ht/~rne/dram).

nigels-com pushed a commit to nigels-com/cram that referenced this pull request Sep 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants