Comments (5)
43445d8 should resolve this, it'll be in a 2.0.1 release as soon as CI finishes running.
from sybil.
Can you share some examples of these non-Python blocks?
If they're not Python, how does doctest evaluate them?
from sybil.
Can you share some examples of these non-Python blocks?
Absolutely. I use the reStructuredText block to illustrate a text format that happens to use tabs. Here's an (actual) example (source):
To illustrate, let us consider the following CHAT utterance with its ``%mor``
tier::
*XXA: 喂 遲 啲 去 唔 去 旅行 啊 ?
%mor: e|wai3 a|ci4 u|di1 v|heoi3 d|m4 v|heoi3 vn|leoi5hang4 y|aa3 ?
If they're not Python, how does doctest evaluate them?
I'm not sure -- I haven't dug into the internals of doctest / Sybil too much. For my use case. I'd want doctest / Sybil to simply ignore blocks like this, which the commit I referred to above would allow when allow_tabs=True
in DocTestParser
. Would there by any chance be a better way to accomplish this that I've missed?
from sybil.
Ah, so the problem is actually that doctest is spotting tabs in blocks it won't even match...
from sybil.
Thank you for the quick fix! I've just upgraded to Sybil 2.0.1 and my CI also passed as well. Thanks again!
from sybil.
Related Issues (20)
- Numerours PytestDeprecationWarning raised when using Sybil HOT 6
- REPL functionality in code blocks HOT 2
- Test regressions since 11496eb5761761b (Fix source filtering) HOT 5
- 3.0.0: pytest is failing in `tests/test_functional.py::test_modules_not_importable_unittest`unit HOT 4
- Incompatibility with Pytest 7.0 HOT 3
- Skip comments do not skip next pieces of code HOT 3
- Namespace spanning examples HOT 11
- Question to test set up: Is it possible that CI is testing the coverage of tests? HOT 1
- "skip" in MyST parser markdown documents HOT 2
- Doctest with MyST may be broken or incorrectly documented HOT 14
- Unexpected whitespace error HOT 4
- Provide a way to isolate tests within one document HOT 10
- AttributeError: 'NoneType' object has no attribute 'end' HOT 5
- isinstance with `Protocol` fails in doctest HOT 3
- Codeblock Lexer pattern doesn't work if codeblock ends with close comment (end of input to the lexer) HOT 2
- Markdown forces an empty line at the end HOT 9
- tests/helpers.py not in PyPI tarball HOT 1
- Allow test setup/cleanup HOT 6
- Have a badge HOT 1
- Doesn't work with namespace packages HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sybil.