Commit 23bdfcb2 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Filter out warnings not checked for in deprecation test

parent 66ddb663
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -64,8 +64,10 @@ class ExecIOTests(TestCase):
		"""
		Check that calling with the deprecated "data" argument passes bytes to stdin
		"""
		msg_re = r".*'data'.* use 'input'"
		with warnings.catch_warnings(record=True) as messages:
			warnings.simplefilter("always")
			warnings.filterwarnings("ignore")
			warnings.filterwarnings("always", category=DeprecationWarning, message=msg_re)

			output = proc.exec_io(ECHO_OUTPUT, data=TEST_BYTES, deserialiser=bytes)