summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test__datasource.py
diff options
context:
space:
mode:
authorJulian Taylor <juliantaylor108@gmail.com>2017-03-25 14:47:04 +0100
committerGitHub <noreply@github.com>2017-03-25 14:47:04 +0100
commitab49be1d5a6f1a7c51298a8fe46a9f43bb2bb33b (patch)
tree434f751384e02a2d386dda491527c50fed070625 /numpy/lib/tests/test__datasource.py
parenta7ed83f6d9e5e8f5a024dfe2d42ad290d79422b1 (diff)
parent1dc20cba80660ee9f2b16e26c0d6e7f23bf9e08f (diff)
downloadnumpy-ab49be1d5a6f1a7c51298a8fe46a9f43bb2bb33b.tar.gz
Merge pull request #8832 from eric-wieser/avoid-as-bytes
MAINT: Remove python <2.7,<3.3 string/unicode workarounds
Diffstat (limited to 'numpy/lib/tests/test__datasource.py')
-rw-r--r--numpy/lib/tests/test__datasource.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/lib/tests/test__datasource.py b/numpy/lib/tests/test__datasource.py
index f4bece352..f2ad0344a 100644
--- a/numpy/lib/tests/test__datasource.py
+++ b/numpy/lib/tests/test__datasource.py
@@ -5,7 +5,6 @@ import sys
from tempfile import mkdtemp, mkstemp, NamedTemporaryFile
from shutil import rmtree
-from numpy.compat import asbytes
from numpy.testing import (
run_module_suite, TestCase, assert_, SkipTest
)
@@ -53,7 +52,7 @@ http_fakefile = 'fake.txt'
malicious_files = ['/etc/shadow', '../../shadow',
'..\\system.dat', 'c:\\windows\\system.dat']
-magic_line = asbytes('three is the magic number')
+magic_line = b'three is the magic number'
# Utility functions used by many TestCases