]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
let's try the from future thingy
authorKevin McCarthy <me@kevinmccarthy.org>
Thu, 31 May 2012 08:57:10 +0000 (22:57 -1000)
committerKevin McCarthy <me@kevinmccarthy.org>
Thu, 31 May 2012 08:57:10 +0000 (22:57 -1000)
.travis.yml
README.md
test.py

index dd9c9e4f927f96aadebfb9d7b4e8909ea8e00ad5..f715641371f570beaa62480a65369dbf56e1e268 100644 (file)
@@ -1,5 +1,6 @@
 language: python
 python:
+  - 2.5
   - 2.6
   - 2.7
 install: pip install -r requirements.txt --use-mirrors
index fde63263c719162a5a7486d2b77ff73d35824e81..f8b74a1cd23cc5f730d825bb82e25bd72533b1c3 100644 (file)
--- a/README.md
+++ b/README.md
@@ -12,6 +12,9 @@ again, they all just hit the text files instead of the internet.  This speeds up
 your tests and lets you work offline.
 
 ##Compatibility Notes
+This should work with Python 2.6 and 2.7.  There aren't any context managers in
+2.5 so I'm not bothering with that.
+
 Currently I've only tested this (a little bit) with urllib2.  It's known to *NOT
 WORK* with urllib.
 
diff --git a/test.py b/test.py
index 8e72e3448aeb08d37a40e5b4ad80f6de896ec883..6cdfec98b70b7fb85f63758e70cecf1baeca578b 100644 (file)
--- a/test.py
+++ b/test.py
@@ -1,3 +1,4 @@
+from __future__ import with_statement
 import os
 import unittest
 import vcr