Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82fea44

Browse files
committed
More PyPy test fixes
1 parent e281108 commit 82fea44

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

mypy/test/data/pythoneval.test

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ from typing import Sized, Sequence, Iterator, Iterable, Mapping, AbstractSet
1717

1818
def check(o, t):
1919
rep = re.sub('0x[0-9a-f]+', '0x...', repr(o))
20-
s = str(t).replace('sequenceiterator', 'str_iterator')
21-
print(rep, s, isinstance(o, t))
20+
rep = rep.replace('sequenceiterator', 'str_iterator')
21+
print(rep, t, isinstance(o, t))
2222

2323
def f():
2424
check('x', Sized)
@@ -291,12 +291,11 @@ The most base type
291291

292292
[case testFunctionAttributes]
293293
import typing
294-
print(ord.__class__)
294+
ord.__class__
295295
print(type(ord.__doc__ + ''))
296296
print(ord.__name__)
297297
print(ord.__module__)
298298
[out]
299-
<class 'builtin_function_or_method'>
300299
<class 'str'>
301300
ord
302301
builtins

0 commit comments

Comments
 (0)