Skip to content

Commit

Permalink
Fix several style complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
hsmj1412 authored and Hao-Liu committed Jan 16, 2017
1 parent d4de299 commit 3e848d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions dice/utils/rnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def text(min_len=5, max_len=10, charset=None, excludes=None):

return result_str


ALL_CHARS = set(string.ascii_letters) - set('&\'"<>')
# ALL_CHARS = set(string.printable)

Expand Down
5 changes: 2 additions & 3 deletions docs/source/write_test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ The file structure of a basic DICE project likes::
project_root
|-- oracles
| `-- pyramid.yaml
|-- item.py
`-- utils
`-- item.py

- An ``item.py`` is a python script defines how a single test item is run and pass
the result to DICE for analysis.
Expand All @@ -29,8 +29,7 @@ Writing Test Runner
``item.py`` contains a class ``Item`` inherits from ``dice.item`` class from DICE`s
core API:

.. literalinclude:: ../../examples/pyramid/item.py

.. literalinclude:: ../../examples/pyramid/utils/item.py

Writing Oracle
==============
Expand Down
1 change: 1 addition & 0 deletions scripts/dice
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def info(exctype, value, tb):
# ...then start the debugger in post-mortem mode.
pdb.pm()


# Override exception hook to jump into pdb when exception
sys.excepthook = info

Expand Down

0 comments on commit 3e848d8

Please sign in to comment.