Commit 872684b8 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Fix the caching for the file test

The file.py test looked at the README.md file, but the tester caches
the CPython output and when I changed the README it didn't invalidate the
cache.

The tester knows to invalidate the cache if the test file itself changes, so
instead of using README as the test target, use itself since that dependency
is already tracked.
parent fb2b8a50
......@@ -34,12 +34,12 @@ f = open('/dev/null')
print iter(f) is f
f.close()
with open('README.md') as f:
with open(__file__) as f:
lines = list(f)
print lines[:5]
print lines[-5:]
with open('README.md') as f:
with open(__file__) as f:
print len(f.readlines())
# Check that opening a non-existent file results in an IOError.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment