File: skip.rst

package info (click to toggle)
python-sybil 9.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,148 kB
  • sloc: python: 4,510; makefile: 90
file content (41 lines) | stat: -rw-r--r-- 578 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.. skip: next

This would be wrong:

>>> 1 == 2
True

This is pseudo-code:

.. skip: start

>>> foo = ...
>>> foo(..)

.. skip: end

>>> import sys

This will only work on Python 3:

.. skip: next if(sys.version_info < (3, 0), reason="python 3 only")

>>> repr(b'foo')
"b'foo'"

This example is not yet working, but I wanted to be reminded:

.. skip: next "not yet working"

>>> 1.1 == 1.11
True

And here we can see some pseudo-code that will work in a future release:

.. skip: start "Fix in v5"

>>> helper = Framework().make_helper()
>>> helper.describe(...)

.. skip: end