Show More
@@ -213,14 +213,17 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 '<%s object at %x, raw_cell="%s" store_history=%s silent=%s shell_futures=%s cell_id=%s>' % ( |
|
216 | return ( | |
217 | name, |
|
217 | '<%s object at %x, raw_cell="%s" store_history=%s silent=%s shell_futures=%s cell_id=%s>' | |
218 |
|
|
218 | % ( | |
219 |
|
|
219 | name, | |
220 |
self |
|
220 | id(self), | |
221 |
|
|
221 | raw_cell, | |
222 |
self.s |
|
222 | self.store_history, | |
223 |
self. |
|
223 | self.silent, | |
|
224 | self.shell_futures, | |||
|
225 | self.cell_id, | |||
|
226 | ) | |||
224 | ) |
|
227 | ) | |
225 |
|
228 | |||
226 |
|
229 |
@@ -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 |
|
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. |
@@ -85,11 +85,11 b' def get_py_filename(name):' | |||||
85 | name = os.path.expanduser(name) |
|
85 | name = os.path.expanduser(name) | |
86 | if os.path.isfile(name): |
|
86 | if os.path.isfile(name): | |
87 | return name |
|
87 | return name | |
88 |
if not name.endswith( |
|
88 | if not name.endswith(".py"): | |
89 |
py_name = name + |
|
89 | py_name = name + ".py" | |
90 | if os.path.isfile(py_name): |
|
90 | if os.path.isfile(py_name): | |
91 | return py_name |
|
91 | return py_name | |
92 |
raise IOError( |
|
92 | raise IOError("File `%r` not found." % name) | |
93 |
|
93 | |||
94 |
|
94 | |||
95 | def filefind(filename: str, path_dirs=None) -> str: |
|
95 | def filefind(filename: str, path_dirs=None) -> str: |
General Comments 0
You need to be logged in to leave comments.
Login now