Skip to content

Commit

Permalink
Update Dockerfile to use Python 3 (google#668)
Browse files Browse the repository at this point in the history
Also ran 2to3 on one file that had some Python2-isms.

Fixes google#666
  • Loading branch information
zoddicus authored and dneto0 committed Jun 7, 2019
1 parent d0298a3 commit f21bd30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -21,7 +21,7 @@ RUN apk add --update \
cmake \
git \
ninja \
python \
python3 \
py-pip \
&& rm -rf /var/cache/apk/*

Expand Down
4 changes: 1 addition & 3 deletions glslc/test/glslc_test_framework.py
Expand Up @@ -45,8 +45,6 @@ class will be created and serve as a test case in that testsuite. The test
be deleted.
"""

from __future__ import print_function

import argparse
import fnmatch
import inspect
Expand Down Expand Up @@ -305,7 +303,7 @@ def runTest(self):
run_results = [getattr(self.test, test_method)(test_status)
for test_method in get_all_test_methods(
self.test.__class__)]
success, message = zip(*run_results)
success, message = list(zip(*run_results))
success = all(success)
message = '\n'.join(message)
except Exception as e:
Expand Down

0 comments on commit f21bd30

Please sign in to comment.