Commit 66ddb663 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add a return-code test for proc.exec_io

parent a3f07bad
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -118,6 +118,14 @@ class ExecIOTests(TestCase):
				self.assertEqual(pipe.read(), TEST_BYTES)
				self.assertEqual(code, 0)

	def test_return_code(self) -> None:
		"""
		Check that non-zero return codes are returned when no deserialiser is provided
		"""
		code = proc.exec_io([*FIXTURE_CMD, "rcode", "--code=5"])

		self.assertEqual(code, 5)


class ExecutorTests(TestCase):
	"""