GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove expectedFailure for encoding tests now passing · RustPython/RustPython@bb805d3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Lib/test
    • test_importlib/source
      • test_source_encoding.py
    • test_runpy.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Lib/test/test_importlib/source/test_source_encoding.py‎

Copy file name to clipboardExpand all lines: Lib/test/test_importlib/source/test_source_encoding.py
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,12 @@ def test_default_encoding(self):
6262
self.run_test(self.source_line.encode('utf-8'))
6363

6464
# [encoding first line]
65-
@unittest.expectedFailure # TODO: RUSTPYTHON; UnicodeDecodeError: invalid utf-8 sequence of 1 bytes from index 17
6665
def test_encoding_on_first_line(self):
6766
encoding = 'Latin-1'
6867
source = self.create_source(encoding)
6968
self.run_test(source)
7069

7170
# [encoding second line]
72-
@unittest.expectedFailure # TODO: RUSTPYTHON; UnicodeDecodeError: invalid utf-8 sequence of 1 bytes from index 34
7371
def test_encoding_on_second_line(self):
7472
source = b"#/usr/bin/python\n" + self.create_source('Latin-1')
7573
self.run_test(source)
@@ -84,7 +82,6 @@ def test_bom_and_utf_8(self):
8482
self.run_test(source)
8583

8684
# [BOM conflict]
87-
@unittest.expectedFailure # TODO: RUSTPYTHON; UnicodeDecodeError: invalid utf-8 sequence of 1 bytes from index 20
8885
def test_bom_conflict(self):
8986
source = codecs.BOM_UTF8 + self.create_source('latin-1')
9087
with self.assertRaises(SyntaxError):
Collapse file

‎Lib/test/test_runpy.py‎

Copy file name to clipboardExpand all lines: Lib/test/test_runpy.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,6 @@ def test_main_recursion_error(self):
752752
with infinite_recursion(25):
753753
self.assertRaises(RecursionError, run_path, zip_name)
754754

755-
@unittest.expectedFailure # TODO: RUSTPYTHON; detect encoding comments in files
756755
def test_encoding(self):
757756
with temp_dir() as script_dir:
758757
filename = os.path.join(script_dir, 'script.py')

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.