diff options
Diffstat (limited to 'test/regrtest_data/descriptor_crash.py')
-rw-r--r-- | test/regrtest_data/descriptor_crash.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/regrtest_data/descriptor_crash.py b/test/regrtest_data/descriptor_crash.py new file mode 100644 index 0000000..9cf3012 --- /dev/null +++ b/test/regrtest_data/descriptor_crash.py @@ -0,0 +1,12 @@ +# -*- coding: iso-8859-1 -*- + +import urllib + +class Page(object): + _urlOpen = staticmethod(urllib.urlopen) + + def getPage(self, url): + handle = self._urlOpen(url) + data = handle.read() + handle.close() + return data |