Show More
@@ -213,14 +213,17 b' class ExecutionInfo(object):' | |||
|
213 | 213 | raw_cell = ( |
|
214 | 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>' % ( | |
|
217 | name, | |
|
218 |
|
|
|
219 |
|
|
|
220 |
self |
|
|
221 |
|
|
|
222 |
self.s |
|
|
223 |
self. |
|
|
216 | return ( | |
|
217 | '<%s object at %x, raw_cell="%s" store_history=%s silent=%s shell_futures=%s cell_id=%s>' | |
|
218 | % ( | |
|
219 | name, | |
|
220 | id(self), | |
|
221 | raw_cell, | |
|
222 | self.store_history, | |
|
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 | 782 | precision = 0 if fraction is None else len(fraction) |
|
783 | 783 | if exponent is not None: |
|
784 | 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 | 786 | # They're close enough. Replace the text we actually |
|
787 | 787 | # got with the text we want, so that it will match when we |
|
788 | 788 | # check the string literally. |
@@ -85,11 +85,11 b' def get_py_filename(name):' | |||
|
85 | 85 | name = os.path.expanduser(name) |
|
86 | 86 | if os.path.isfile(name): |
|
87 | 87 | return name |
|
88 |
if not name.endswith( |
|
|
89 |
py_name = name + |
|
|
88 | if not name.endswith(".py"): | |
|
89 | py_name = name + ".py" | |
|
90 | 90 | if os.path.isfile(py_name): |
|
91 | 91 | return py_name |
|
92 |
raise IOError( |
|
|
92 | raise IOError("File `%r` not found." % name) | |
|
93 | 93 | |
|
94 | 94 | |
|
95 | 95 | def filefind(filename: str, path_dirs=None) -> str: |
General Comments 0
You need to be logged in to leave comments.
Login now