summaryrefslogtreecommitdiff
path: root/tests/testing-util
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2013-01-05 00:55:13 +0100
committerPaolo Borelli <pborelli@gnome.org>2013-01-05 01:26:04 +0100
commit519d9ebe0608c855ea84a1050036c93eda7dacbe (patch)
treefe1012a6bb960cec434bf4f15053475355304ce4 /tests/testing-util
parent7a8f01e7621c9a0a508139d0966db56a33ce295b (diff)
downloadlibpeas-519d9ebe0608c855ea84a1050036c93eda7dacbe.tar.gz
Prevent python from generating binary files
Do not generate .pyc and __pycache__ files in the tests: they are not needed and break distcheck
Diffstat (limited to 'tests/testing-util')
-rw-r--r--tests/testing-util/testing-util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testing-util/testing-util.c b/tests/testing-util/testing-util.c
index 28840ce..8813dff 100644
--- a/tests/testing-util/testing-util.c
+++ b/tests/testing-util/testing-util.c
@@ -135,6 +135,9 @@ testing_util_init (void)
g_setenv ("PEAS_PLUGIN_LOADERS_DIR", BUILDDIR "/loaders", TRUE);
+ /* Prevent python from generating compiled files, they break distcheck */
+ g_setenv ("PYTHONDONTWRITEBYTECODE", "yes", TRUE);
+
g_irepository_require (g_irepository_get_default (), "Peas", "1.0", 0, &error);
g_assert_no_error (error);