[Piglit] [PATCH] tests/sanity: declare encoding of file for python 2

Dylan Baker dylan at pnwbakers.com
Wed Jul 11 16:57:46 UTC 2018


Python 2 assumes that files are encoded ascii unless they declare a
different encoding, python 3 assumes files are encoded utf-8 unless they
declare a different encoding.

Cc: vlee at freedesktop.org
---
 tests/sanity.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/sanity.py b/tests/sanity.py
index 13f7859fb..88bf27457 100644
--- a/tests/sanity.py
+++ b/tests/sanity.py
@@ -1,3 +1,4 @@
+# encoding=utf-8
 # Copyright © 2018 Intel Corporation
 
 # Permission is hereby granted, free of charge, to any person obtaining a copy
-- 
2.18.0



More information about the Piglit mailing list