Skip to content

Commit 9966af3

Browse files
committed
Auto merge of #66396 - smmalis37:pythontest, r=alexcrichton
Make a test compatible across python versions. Progress on #65063 This PR allows this test to work on both python2 and python3, ~~and it also allows `./x.py test` to fully complete on my system without python2 installed at all.~~
2 parents d67ca28 + 56f9212 commit 9966af3

File tree

1 file changed

+1
-1
lines changed
  • src/test/run-make-fulldeps/sysroot-crates-are-unstable

1 file changed

+1
-1
lines changed

src/test/run-make-fulldeps/sysroot-crates-are-unstable/test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def check_lib(lib):
3333
print('verifying if {} is an unstable crate'.format(lib['name']))
3434
stdout, stderr = exec_command([os.environ['RUSTC'], '-', '--crate-type', 'rlib',
3535
'--extern', '{}={}'.format(lib['name'], lib['path'])],
36-
to_input='extern crate {};'.format(lib['name']))
36+
to_input=('extern crate {};'.format(lib['name'])).encode('utf-8'))
3737
if not 'use of unstable library feature' in '{}{}'.format(stdout, stderr):
3838
print('crate {} "{}" is not unstable'.format(lib['name'], lib['path']))
3939
print('{}{}'.format(stdout, stderr))

0 commit comments

Comments
 (0)