From: Rob Browning Date: Thu, 20 Jan 2011 04:09:25 +0000 (-0600) Subject: Change os.geteuid to os.geteuid() in tmetadata.py. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7be8d2475accc8144c92d9e0d7669e18a5dbbbcc;p=packages%2Fb%2Fbup.git Change os.geteuid to os.geteuid() in tmetadata.py. --- diff --git a/lib/bup/t/tmetadata.py b/lib/bup/t/tmetadata.py index b6451ed..24e43f7 100644 --- a/lib/bup/t/tmetadata.py +++ b/lib/bup/t/tmetadata.py @@ -77,7 +77,7 @@ def test_clean_up_extract_path(): @wvtest def test_from_path_error(): - if os.geteuid == 0 or detect_fakeroot(): + if os.geteuid() == 0 or detect_fakeroot(): return tmpdir = tempfile.mkdtemp(prefix='bup-tmetadata-') try: @@ -96,7 +96,7 @@ def test_from_path_error(): @wvtest def test_apply_to_path_restricted_access(): - if os.geteuid == 0 or detect_fakeroot(): + if os.geteuid() == 0 or detect_fakeroot(): return tmpdir = tempfile.mkdtemp(prefix='bup-tmetadata-') try: @@ -116,7 +116,7 @@ def test_apply_to_path_restricted_access(): @wvtest def test_restore_restricted_user_group(): - if os.geteuid == 0 or detect_fakeroot(): + if os.geteuid() == 0 or detect_fakeroot(): return tmpdir = tempfile.mkdtemp(prefix='bup-tmetadata-') try: