Skip to content

Commit c6eb601

Browse files
hugovkplamut
authored andcommitted
fix: replace unsafe six.PY3 with PY2 for better future compatibility with Python 4 (#10081)
* fix: fix for Python 4: replace unsafe six.PY3 with PY2 * Fix wording
1 parent 4aedea8 commit c6eb601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/handlers/test__helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def get(self):
7777
self.response.out.write(json.dumps(trace_id))
7878

7979

80-
@unittest.skipIf(six.PY3, "webapp2 is Python 2 only")
80+
@unittest.skipIf(not six.PY2, "webapp2 is Python 2 only")
8181
class Test_get_trace_id_from_webapp2(unittest.TestCase):
8282
@staticmethod
8383
def create_app():

0 commit comments

Comments
 (0)