# Avoid having to list/copy the module itself as a pybuild testfile
# only because the testsuite/autopkgtest needs some non-rar file
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -15,9 +15,9 @@
 
 def test_not_rar():
     with pytest.raises(rarfile.NotRarFile):
-        rarfile.RarFile("rarfile.py", "r")
+        rarfile.RarFile(__file__, "r")
     with pytest.raises(rarfile.NotRarFile):
-        with open("rarfile.py", "rb") as f:
+        with open(__file__, "rb") as f:
             rarfile.RarFile(f, "r")
 
 
