From 710042934295d040945c6c24da95b8aaef965007 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 4 Dec 2015 10:14:47 +0530 Subject: [PATCH] tor: Minor fixes - Be a little bit more strict about Tor tests by requiring the module to be importable even when not running as root. --- plinth/modules/tor/tests/test_tor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plinth/modules/tor/tests/test_tor.py b/plinth/modules/tor/tests/test_tor.py index b58c0c0c6..223a6b47c 100644 --- a/plinth/modules/tor/tests/test_tor.py +++ b/plinth/modules/tor/tests/test_tor.py @@ -16,15 +16,15 @@ # """ -Tests for tor module. +Tests for Tor module. """ import os import unittest +from ..tor import is_apt_transport_tor_enabled, get_hs, get_status + euid = os.geteuid() -if euid == 0: - from ..tor import is_apt_transport_tor_enabled, get_hs, get_status class TestTor(unittest.TestCase):