We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63b6932 commit 44b8439Copy full SHA for 44b8439
testing/acceptance_test.py
@@ -212,6 +212,18 @@ def test_chdir(self, testdir):
212
result = testdir.runpython(p)
213
assert not result.ret
214
215
+ def test_removing_cwd(self, testdir):
216
+ testdir.makepyfile("""
217
+ def test_deleting_cwd(tmpdir, monkeypatch):
218
+ work = tmpdir.mkdir("work")
219
+ monkeypatch.chdir(work)
220
+ work.remove()
221
+ # Actual testing here
222
+ assert False
223
+ """)
224
+ result = testdir.runpytest()
225
+ assert result.ret == EXIT_TESTSFAILED
226
+
227
def test_issue109_sibling_conftests_not_loaded(self, testdir):
228
sub1 = testdir.tmpdir.mkdir("sub1")
229
sub2 = testdir.tmpdir.mkdir("sub2")
@@ -678,4 +690,3 @@ def test_setup_function(self, testdir):
678
690
* setup *test_1*
679
691
* call *test_1*
680
692
""")
681
-
0 commit comments