Skip to content

Commit d415d8d

Browse files
committed
Remove test code for Python 2
1 parent e668fd5 commit d415d8d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/test_common.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import collections
55
import logging
66
import os.path
7-
import sys
87

98
import pytest
109
import pretend
@@ -100,10 +99,6 @@ def test_find_imported_modules(monkeypatch, caplog, ignore_ham, ignore_hashlib,
10099
monkeypatch.setattr(common, 'pyfiles',
101100
pretend.call_recorder(lambda x: ['spam.py', 'ham.py']))
102101

103-
if sys.version_info[0] == 2:
104-
# py2 will find sys module but py3k won't
105-
expect.append('sys')
106-
107102
class FakeFile():
108103
contents = [
109104
'from os import path\nimport ast, hashlib',

0 commit comments

Comments
 (0)