From ac2bf10fe2c2d22cad4430f5f27b76ae6535ed71 Mon Sep 17 00:00:00 2001 From: Alex Adamson Date: Mon, 7 Jan 2019 18:43:59 -0500 Subject: [PATCH] Disable unserialized arguments check for py2 --- testing/acceptance_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index c0cefed..84c3bbe 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -1,5 +1,6 @@ import os import re +import sys import textwrap import py @@ -808,6 +809,9 @@ class TestWarnings: """Check that warnings with unserializable _WARNING_DETAILS are handled correctly (#379). """ + if sys.version_info[0] < 3: + # The issue is only present in Python 3 warnings + return testdir.makepyfile( """ import warnings, pytest