提交 be0ea5ca authored 作者: Hector's avatar Hector 提交者: Thomas Wiecki

Fix additional typos

上级 a4626eda
...@@ -104,8 +104,7 @@ class BadThunkOutput(DebugModeError): ...@@ -104,8 +104,7 @@ class BadThunkOutput(DebugModeError):
def str_diagnostic(self): def str_diagnostic(self):
""" """
Return a pretty multiline string representing the cause of Return a pretty multiline string representing the cause of the exception.
the exception.
""" """
sio = StringIO() sio = StringIO()
...@@ -347,8 +346,7 @@ class InvalidValueError(DebugModeError): ...@@ -347,8 +346,7 @@ class InvalidValueError(DebugModeError):
def str_diagnostic(expected, value, rtol, atol): def str_diagnostic(expected, value, rtol, atol):
"""Return a pretty multiline string representing the cause """Return a pretty multiline string representing the cause of the exception."""
of the exception"""
sio = StringIO() sio = StringIO()
try: try:
......
...@@ -25,7 +25,7 @@ class ReplacementDidNotRemoveError(Exception): ...@@ -25,7 +25,7 @@ class ReplacementDidNotRemoveError(Exception):
""" """
This exception should be thrown by replace_all_validate_remove This exception should be thrown by replace_all_validate_remove
when an optimization wanted to remove a Variable or a Node from when an optimization wanted to remove a Variable or a Node from
the graph, but the replacement it gived didn't do that. the graph, but the replacement it gave didn't do that.
""" """
...@@ -153,9 +153,7 @@ class BadOptimization(Exception): ...@@ -153,9 +153,7 @@ class BadOptimization(Exception):
def str_diagnostic(self): def str_diagnostic(self):
""" """
Return a pretty multiline string representating the cause Return a pretty multiline string representing the cause of the exception.
of the exception.
""" """
# We have a pre-made message # We have a pre-made message
if getattr(self, "full_err", None) is not None: if getattr(self, "full_err", None) is not None:
......
...@@ -33,7 +33,7 @@ Unit Testing revolves around the following principles: ...@@ -33,7 +33,7 @@ Unit Testing revolves around the following principles:
This page is in no way meant to replace tutorials on Python's unittest This page is in no way meant to replace tutorials on Python's unittest
module, for this we refer the reader to the `official documentation module, for this we refer the reader to the `official documentation
<http://docs.python.org/library/unittest.html>`_. We will however <http://docs.python.org/library/unittest.html>`_. We will however
adress certain specificities about how unittests relate to aesara. address certain specifics about how unittests relate to aesara.
PyTest Primer PyTest Primer
=============== ===============
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论