1.1 --- a/tests/test_calendar.py Mon Nov 03 00:48:06 2008 +0100
1.2 +++ b/tests/test_calendar.py Thu Jan 15 23:39:48 2009 +0100
1.3 @@ -1,8 +1,9 @@
1.4 #!/usr/bin/env python
1.5
1.6 -import codecs, vCalendar
1.7 +import codecs, vCalendar, os
1.8
1.9 -f = codecs.open("tests/test.ics", encoding="utf-8")
1.10 +this_dir = os.path.split(__file__)[0]
1.11 +f = codecs.open(os.path.join(this_dir, "test.ics"), encoding="utf-8")
1.12 doc = vCalendar.parse(f)
1.13
1.14 # vim: tabstop=4 expandtab shiftwidth=4
2.1 --- a/tests/test_calendar_stream.py Mon Nov 03 00:48:06 2008 +0100
2.2 +++ b/tests/test_calendar_stream.py Thu Jan 15 23:39:48 2009 +0100
2.3 @@ -1,8 +1,9 @@
2.4 #!/usr/bin/env python
2.5
2.6 -import codecs, vCalendar
2.7 +import codecs, vCalendar, os
2.8
2.9 -f = codecs.open("tests/test.ics", encoding="utf-8")
2.10 +this_dir = os.path.split(__file__)[0]
2.11 +f = codecs.open(os.path.join(this_dir, "test.ics"), encoding="utf-8")
2.12 out = codecs.open("tmp.ics", "w", encoding="utf-8")
2.13 try:
2.14 doc = vCalendar.iterparse(f)
3.1 --- a/tests/test_card.py Mon Nov 03 00:48:06 2008 +0100
3.2 +++ b/tests/test_card.py Thu Jan 15 23:39:48 2009 +0100
3.3 @@ -1,8 +1,9 @@
3.4 #!/usr/bin/env python
3.5
3.6 -import codecs, vContent
3.7 +import codecs, vContent, os
3.8
3.9 -f = codecs.open("tests/test.vcf", encoding="utf-8")
3.10 +this_dir = os.path.split(__file__)[0]
3.11 +f = codecs.open(os.path.join(this_dir, "test.vcf"), encoding="utf-8")
3.12 doc = vContent.parse(f)
3.13
3.14 # vim: tabstop=4 expandtab shiftwidth=4
4.1 --- a/tests/test_card_stream.py Mon Nov 03 00:48:06 2008 +0100
4.2 +++ b/tests/test_card_stream.py Thu Jan 15 23:39:48 2009 +0100
4.3 @@ -1,8 +1,9 @@
4.4 #!/usr/bin/env python
4.5
4.6 -import codecs, vContent
4.7 +import codecs, vContent, os
4.8
4.9 -f = codecs.open("tests/test.vcf", encoding="utf-8")
4.10 +this_dir = os.path.split(__file__)[0]
4.11 +f = codecs.open(os.path.join(this_dir, "test.vcf"), encoding="utf-8")
4.12 out = codecs.open("tmp.vcf", "w", encoding="utf-8")
4.13 try:
4.14 doc = vContent.iterparse(f)