diff options
author | Rhys Kidd <rhyskidd@gmail.com> | 2018-08-06 21:53:47 -0400 |
---|---|---|
committer | Rhys Kidd <rhyskidd@gmail.com> | 2018-08-07 21:12:27 -0400 |
commit | a1be34cd4d237b12417731c0714331c74d2e6c26 (patch) | |
tree | 3941fedb7fceaf615c9f708eb4aa9b279ed9c3b0 /framework | |
parent | 4d6bea33d2da0e6c01132d666af547ce428a413e (diff) |
framework/test/shader_test.py: Remove redundant workaround for python 3.3 mock
As python 3.3 is deprecated and no longer supported by piglit, remove redundant workaround
for lack of readlines() support with mock in python 3.3.
Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/test/shader_test.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/test/shader_test.py b/framework/test/shader_test.py index de3e92f4b..680ae2d6b 100644 --- a/framework/test/shader_test.py +++ b/framework/test/shader_test.py @@ -68,9 +68,7 @@ class Parser(object): # an exception. The second looks for the GL version or raises an # exception with io.open(os.path.join(ROOT_DIR, self.filename), 'r', encoding='utf-8') as shader_file: - # The mock in python 3.3 doesn't support readlines(), so use - # read().split() as a workaround - lines = (l for l in shader_file.read().split('\n')) + lines = (l for l in shader_file.readlines()) # Find the config section for line in lines: |