]> www.fi.muni.cz Git - evince.git/blobdiff - test/test2.py
Add EvPage so that we can hold a reference to the backend page. Form
[evince.git] / test / test2.py
index c0958c857ec0870396647e559b320531b2f6ce37..ac6493adf7d3aae6205edab9bf35b5df2e1dceaa 100755 (executable)
@@ -2,9 +2,13 @@
 
 # This test opens a password encrypted file and tries to unlock it.
 
 
 # This test opens a password encrypted file and tries to unlock it.
 
+import os
+os.environ['LANG']='C'
+srcdir = os.environ['srcdir']
+
 from dogtail.procedural import *
 
 from dogtail.procedural import *
 
-run('evince', arguments=' ./test-encrypt.pdf',)
+run('evince', arguments=' '+srcdir+'/test-encrypt.pdf')
 
 # Try an incorrect password first
 focus.dialog('Enter password')
 
 # Try an incorrect password first
 focus.dialog('Enter password')