summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürgen Gmach <juergen.gmach@googlemail.com>2022-02-04 23:48:39 +0100
committerStephen Finucane <stephenfinucane@hotmail.com>2022-02-09 15:50:27 +0000
commit7b25135ffdecd37e803ff860a6ec4128d255f9c6 (patch)
treec9cfb5cc13aa6a7fad6b054c96f03f3e57d18aba
parent7aa50f2059dd09cc4321462e5e24310d223c3350 (diff)
downloadfixtures-git-7b25135ffdecd37e803ff860a6ec4128d255f9c6.tar.gz
Failing test for compatibility problem with Python 3.7
-rw-r--r--fixtures/tests/_fixtures/test_popen.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/fixtures/tests/_fixtures/test_popen.py b/fixtures/tests/_fixtures/test_popen.py
index b0af3d3..c5dc141 100644
--- a/fixtures/tests/_fixtures/test_popen.py
+++ b/fixtures/tests/_fixtures/test_popen.py
@@ -61,6 +61,20 @@ class TestFakePopen(testtools.TestCase, TestWithFixtures):
fixture = self.useFixture(FakePopen(get_info))
fixture(**all_args)
+ def test_handles_all_3_7_args(self):
+ all_args = dict(
+ args="args", bufsize="bufsize", executable="executable",
+ stdin="stdin", stdout="stdout", stderr="stderr",
+ preexec_fn="preexec_fn", close_fds="close_fds", shell="shell",
+ cwd="cwd", env="env", universal_newlines="universal_newlines",
+ startupinfo="startupinfo", creationflags="creationflags",
+ text="text")
+ def get_info(proc_args):
+ self.assertEqual(all_args, proc_args)
+ return {}
+ fixture = self.useFixture(FakePopen(get_info))
+ fixture(**all_args)
+
def test_custom_returncode(self):
def get_info(proc_args):
return dict(returncode=1)