From ac4eb9de6692735cfcba22dddbf95b2c13477a82 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Tue, 13 Mar 2018 20:56:14 +0100 Subject: tests: Fix one more cross-fs test to test for mountpoint --- tests/test_verify.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/test_verify.py') diff --git a/tests/test_verify.py b/tests/test_verify.py index d244c0b..c2fbe7d 100644 --- a/tests/test_verify.py +++ b/tests/test_verify.py @@ -1,6 +1,6 @@ # gemato: Verification tests # vim:fileencoding=utf-8 -# (c) 2017 Michał Górny +# (c) 2017-2018 Michał Górny # Licensed under the terms of 2-clause BSD license import io @@ -293,6 +293,9 @@ class EmptyFileVerificationTest(unittest.TestCase): expected_dev=st.st_dev) def testCrossFilesystemAssert(self): + if not os.path.ismount('/proc'): + raise unittest.SkipTest('/proc is not a mountpoint') + try: st = os.stat('/proc') except OSError: -- cgit v1.2.3