Fix unlink errno check
authorScott Worley <scottworley@scottworley.com>
Tue, 25 Sep 2018 23:05:16 +0000 (16:05 -0700)
committerNikolaus Rath <Nikolaus@rath.org>
Thu, 27 Sep 2018 08:29:22 +0000 (09:29 +0100)
test/test_examples.py

index 995e6243441cf5d2785c0a8d7447affdd9a13189..12fe6d7accdd41e8b12d49096aaad9fc0b825387 100755 (executable)
@@ -455,7 +455,7 @@ def tst_open_unlink(mnt_dir):
         os.unlink(fullname)
         with pytest.raises(OSError) as exc_info:
             os.stat(fullname)
-            assert exc_info.value.errno == errno.ENOENT
+        assert exc_info.value.errno == errno.ENOENT
         assert name not in os.listdir(mnt_dir)
         fh.write(data2)
         fh.seek(0)