Show More
@@ -213,17 +213,14 b' class ExecutionInfo(object):' | |||||
213 | raw_cell = ( |
|
213 | raw_cell = ( | |
214 | (self.raw_cell[:50] + "..") if len(self.raw_cell) > 50 else self.raw_cell |
|
214 | (self.raw_cell[:50] + "..") if len(self.raw_cell) > 50 else self.raw_cell | |
215 | ) |
|
215 | ) | |
216 | return ( |
|
216 | return '<%s object at %x, raw_cell="%s" store_history=%s silent=%s shell_futures=%s cell_id=%s>' % ( | |
217 | '<%s object at %x, raw_cell="%s" store_history=%s silent=%s shell_futures=%s cell_id=%s>' |
|
217 | name, | |
218 |
|
|
218 | id(self), | |
219 |
|
|
219 | raw_cell, | |
220 |
|
|
220 | self.store_history, | |
221 |
|
|
221 | self.silent, | |
222 |
|
|
222 | self.shell_futures, | |
223 |
|
|
223 | self.cell_id, | |
224 | self.shell_futures, |
|
|||
225 | self.cell_id, |
|
|||
226 | ) |
|
|||
227 | ) |
|
224 | ) | |
228 |
|
225 | |||
229 |
|
226 |
@@ -782,7 +782,7 b' def _init_checker_class() -> Type["IPDoctestOutputChecker"]:' | |||||
782 | precision = 0 if fraction is None else len(fraction) |
|
782 | precision = 0 if fraction is None else len(fraction) | |
783 | if exponent is not None: |
|
783 | if exponent is not None: | |
784 | precision -= int(exponent) |
|
784 | precision -= int(exponent) | |
785 | if float(w.group()) == approx(float(g.group()), abs=10**-precision): |
|
785 | if float(w.group()) == approx(float(g.group()), abs=10 ** -precision): | |
786 | # They're close enough. Replace the text we actually |
|
786 | # They're close enough. Replace the text we actually | |
787 | # got with the text we want, so that it will match when we |
|
787 | # got with the text we want, so that it will match when we | |
788 | # check the string literally. |
|
788 | # check the string literally. |
General Comments 0
You need to be logged in to leave comments.
Login now