diff --git a/Makefile.am b/Makefile.am index b746299a42..228f49d396 100644 --- a/Makefile.am +++ b/Makefile.am @@ -329,7 +329,7 @@ clean-docs: clean-local: clean-docs rm -rf coverage_percent.txt test_bitcoin.coverage/ total.coverage/ fuzz.coverage/ test/tmp/ cache/ $(OSX_APP) - rm -rf test/functional/__pycache__ test/functional/test_framework/__pycache__ test/cache share/rpcauth/__pycache__ + rm -rf test/functional/__pycache__ test/functional/test_framework/__pycache__ test/cache rm -rf dist/ test/lint/test_runner/target/ test/lint/__pycache__ test-security-check: diff --git a/test/util/rpcauth-test.py b/test/util/rpcauth-test.py index 8a7ff26dcb..931eb80960 100755 --- a/test/util/rpcauth-test.py +++ b/test/util/rpcauth-test.py @@ -21,6 +21,7 @@ class TestRPCAuth(unittest.TestCase): with open(config_path, encoding="utf8") as config_file: config.read_file(config_file) sys.path.insert(0, os.path.dirname(config['environment']['RPCAUTH'])) + sys.dont_write_bytecode = True self.rpcauth = importlib.import_module('rpcauth') def test_generate_salt(self):