Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r65030:c473fd4a7af5
Date: 2013-06-27 00:29 +0200
http://bitbucket.org/pypy/pypy/changeset/c473fd4a7af5/
Log: Oops, this eval() thing is not necessary if the assert does not
fail.
diff --git a/pypy/module/mmap/test/test_mmap.py
b/pypy/module/mmap/test/test_mmap.py
--- a/pypy/module/mmap/test/test_mmap.py
+++ b/pypy/module/mmap/test/test_mmap.py
@@ -522,7 +522,7 @@
f.seek(0)
m = mmap(f.fileno(), 6)
- assert eval('m[-3:7]') == b"bar"
+ assert m[-3:7] == b"bar"
f.close()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit