Skip to content

Commit

Permalink
remove Python >= 3.6 dependent code
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Kłoczko <[email protected]>
  • Loading branch information
kloczek committed Sep 29, 2024
1 parent bbf672b commit 5a396dc
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import codecs
import locale
import os
import posixpath
Expand All @@ -19,12 +18,6 @@


from unittest import mock
except LookupError:
HAS_OEM_CODEC = False
else:
# Python >= 3.6 on Windows
HAS_OEM_CODEC = True


class MockUI:

Expand Down Expand Up @@ -1151,8 +1144,6 @@ class TestBzr(VCSMixin, unittest.TestCase):
vcs = BzrHelper()


@unittest.skipIf(HAS_OEM_CODEC,
"Python 3.6 lets us use 'oem' codec instead of guessing")
class TestBzrTerminalCharsetDetectionOnOldPythons(unittest.TestCase):

@mock.patch('sys.stdin')
Expand Down Expand Up @@ -1184,8 +1175,6 @@ def test_terminal_encoding_cp0(self, mock_stdout):
self.assertEqual(Bazaar._get_terminal_encoding(), None)


@unittest.skipIf(not HAS_OEM_CODEC,
"'oem' codec not available on Python before 3.6")
class TestBzrTerminalCharsetDetectionOnNewPythons(unittest.TestCase):

def test_terminal_encoding_cp0(self):
Expand Down

0 comments on commit 5a396dc

Please sign in to comment.