Fix tests
This commit is contained in:
1 parent
5fa8338886
commit
946869ab23
2 files changed
+3
-3
No files matched your search
@@ -91,9 +91,9 @@ def test_re_sub(Script, environment):
|
||||
|
||||
names = run("import re; re.sub('a', 'a', 'f')")
|
||||
if environment.version_info.major == 2:
|
||||
assert names == {'str', 'unicode'}
|
||||
assert names == {'str'}
|
||||
else:
|
||||
assert names == {'str', 'bytes'}
|
||||
assert names == {'str'}
|
||||
|
||||
# This param is missing because of overloading.
|
||||
names = run("import re; re.sub('a', 'a')")
|
||||
|
||||
Reference in new issue
Block a user