Skip to content

Commit ac2bf10

Browse files
committed
Disable unserialized arguments check for py2
1 parent fa85371 commit ac2bf10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testing/acceptance_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import re
3+
import sys
34
import textwrap
45

56
import py
@@ -808,6 +809,9 @@ def test_unserializable_warning_details(self, testdir, n):
808809
"""Check that warnings with unserializable _WARNING_DETAILS are
809810
handled correctly (#379).
810811
"""
812+
if sys.version_info[0] < 3:
813+
# The issue is only present in Python 3 warnings
814+
return
811815
testdir.makepyfile(
812816
"""
813817
import warnings, pytest

0 commit comments

Comments
 (0)